20 #include "google/protobuf/text_format.h" 21 #include "gtest/gtest.h" 30 using ::testing::Pointee;
31 using ::testing::Truly;
33 const std::string kMessage = R
"( 36 sensor_id: "sensor_id" 38 timed_point_cloud_data { 44 x: 6.f y: 7.f z: 8.f t: 9.f 48 using AddRangefinderDataHandlerTest =
49 testing::HandlerTest<AddRangefinderDataSignature,
50 AddRangefinderDataHandler>;
52 TEST_F(AddRangefinderDataHandlerTest, NoLocalSlamUploader) {
53 proto::AddRangefinderDataRequest request;
55 google::protobuf::TextFormat::ParseFromString(kMessage, &request));
56 EXPECT_CALL(*mock_map_builder_context_,
58 Eq(request.sensor_metadata().trajectory_id()),
60 test_server_->SendWrite(request);
61 test_server_->SendWritesDone();
62 test_server_->SendFinish();
DataPredicateType BuildDataPredicateEquals(const T &proto)