example_lib_test.cc 302 字节
Newer Older
Y
Yi Wang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "third_party/protobuf_test/example_lib.h"

#include "gtest/gtest.h"

namespace third_party {
namespace protobuf_test {

TEST(ProtobufTest, GetGreet) {
  Greeting g;
  g.set_name("Paddle");
  EXPECT_EQ("Hello Paddle", get_greet(g));
}

}  // namespace protobuf_test
}  // namespace third_party