Skip to content

Commit e7a670f

Browse files
kirilgtensorflower-gardener
authored andcommitted
Fix incorrect namespace usage.
Change: 117159270
1 parent 1b480d2 commit e7a670f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tensorflow_serving/test_util/test_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ string TestSrcDirPath(const string& relative_path) {
3030

3131
ProtoStringMatcher::ProtoStringMatcher(const string& expected)
3232
: expected_(expected) {}
33-
ProtoStringMatcher::ProtoStringMatcher(const proto2::Message& expected)
33+
ProtoStringMatcher::ProtoStringMatcher(const google::protobuf::Message& expected)
3434
: expected_(expected.DebugString()) {}
3535

3636
} // namespace test_util

tensorflow_serving/test_util/test_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ string TestSrcDirPath(const string& relative_path);
4545
class ProtoStringMatcher {
4646
public:
4747
explicit ProtoStringMatcher(const string& expected);
48-
explicit ProtoStringMatcher(const proto2::Message& expected);
48+
explicit ProtoStringMatcher(const google::protobuf::Message& expected);
4949

5050
template <typename Message>
5151
bool MatchAndExplain(const Message& p,
@@ -68,7 +68,7 @@ inline ::testing::PolymorphicMatcher<ProtoStringMatcher> EqualsProto(
6868

6969
// Polymorphic matcher to compare any two protos.
7070
inline ::testing::PolymorphicMatcher<ProtoStringMatcher> EqualsProto(
71-
const proto2::Message& x) {
71+
const google::protobuf::Message& x) {
7272
return ::testing::MakePolymorphicMatcher(ProtoStringMatcher(x));
7373
}
7474

0 commit comments

Comments
 (0)