Internal change.

PiperOrigin-RevId: 423369197
This commit is contained in:
suetfei
2022-02-02 11:37:42 -08:00
committed by hai007
parent 9d4ad8a1d7
commit 1b0efd13ef
53 changed files with 59 additions and 14 deletions
+1
View File
@@ -17,6 +17,7 @@
#include <string>
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "core/internal/mediums/bluetooth_radio.h"
#include "platform/base/medium_environment.h"
@@ -17,6 +17,7 @@
#include <string>
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "absl/time/time.h"
#include "core/internal/mediums/bluetooth_radio.h"
@@ -15,6 +15,7 @@
#include "core/internal/mediums/bluetooth_radio.h"
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
namespace location {
+1
View File
@@ -15,6 +15,7 @@
#include "core/internal/mediums/uuid.h"
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "platform/public/crypto.h"
#include "platform/public/logging.h"
@@ -18,6 +18,7 @@
#include <vector>
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "absl/time/time.h"
#include "core/internal/mediums/webrtc/session_description_wrapper.h"
@@ -18,6 +18,7 @@
#include "google/protobuf/text_format.h"
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "core/internal/mediums/webrtc_peer_id.h"
@@ -86,7 +87,7 @@ TEST(SignalingFramesTest, SignalingPoke) {
location::nearby::mediums::WebRtcSignalingFrame frame;
frame.ParseFromString(std::string(encoded_poke.data(), encoded_poke.size()));
EXPECT_THAT(frame, testing::EqualsProto(R"pb(
EXPECT_THAT(frame, protobuf_matchers::EqualsProto(R"pb(
sender_id { id: "abc" }
type: READY_FOR_SIGNALING_POKE_TYPE
ready_for_signaling_poke {}
@@ -103,7 +104,7 @@ TEST(SignalingFramesTest, EncodeValidOffer) {
frame.ParseFromString(
std::string(encoded_offer.data(), encoded_offer.size()));
EXPECT_THAT(frame, testing::EqualsProto(kOfferProto));
EXPECT_THAT(frame, protobuf_matchers::EqualsProto(kOfferProto));
}
TEST(SignaingFramesTest, DecodeValidOffer) {
@@ -128,7 +129,7 @@ TEST(SignalingFramesTest, EncodeValidAnswer) {
frame.ParseFromString(
std::string(encoded_answer.data(), encoded_answer.size()));
EXPECT_THAT(frame, testing::EqualsProto(kAnswerProto));
EXPECT_THAT(frame, protobuf_matchers::EqualsProto(kAnswerProto));
}
TEST(SignalingFramesTest, DecodeValidAnswer) {
@@ -163,7 +164,7 @@ TEST(SignalingFramesTest, EncodeValidIceCandidates) {
frame.ParseFromString(
std::string(encoded_candidates.data(), encoded_candidates.size()));
EXPECT_THAT(frame, testing::EqualsProto(kIceCandidatesProto));
EXPECT_THAT(frame, protobuf_matchers::EqualsProto(kIceCandidatesProto));
}
TEST(SignalingFramesTest, DecodeValidIceCandidates) {
@@ -17,6 +17,7 @@
#include <memory>
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "platform/base/byte_array.h"
#include "webrtc/api/data_channel_interface.h"
@@ -17,6 +17,7 @@
#include <memory>
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "platform/base/byte_array.h"
#include "platform/public/crypto.h"
+1
View File
@@ -15,6 +15,7 @@
#include "core/internal/mediums/webrtc.h"
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "core/internal/mediums/webrtc_socket.h"
#include "platform/base/listeners.h"
@@ -17,6 +17,7 @@
#include <string>
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "absl/strings/string_view.h"
#include "platform/base/medium_environment.h"