generic.h 619 B

1234567891011121314151617181920212223242526
  1. #ifndef NLP_SAFT_OPENSOURCE_DRAGNN_CORE_TEST_GENERIC_H_
  2. #define NLP_SAFT_OPENSOURCE_DRAGNN_CORE_TEST_GENERIC_H_
  3. #include <utility>
  4. #include <gmock/gmock.h>
  5. #include "syntaxnet/base.h"
  6. #include "tensorflow/core/platform/protobuf.h"
  7. #include "tensorflow/core/platform/test.h"
  8. namespace syntaxnet {
  9. namespace test {
  10. MATCHER_P(EqualsProto, a, "Protos are not equivalent:") {
  11. return a.DebugString() == arg.DebugString();
  12. }
  13. // Returns the prefix for where the test data is stored.
  14. string GetTestDataPrefix();
  15. } // namespace test
  16. } // namespace syntaxnet
  17. #endif // NLP_SAFT_OPENSOURCE_DRAGNN_CORE_TEST_GENERIC_H_