Add WEB_RTC_NON_CELLULAR enum, II

PiperOrigin-RevId: 685103930
This commit is contained in:
Edwin Wu
2024-10-12 00:28:58 -07:00
committed by Copybara-Service
parent fec1c8f63f
commit 7b2eddc458
9 changed files with 85 additions and 7 deletions
@@ -15,12 +15,17 @@
#include "internal/platform/implementation/windows/webrtc.h"
#include <memory>
#include <optional>
#include <string>
#include "gmock/gmock.h"
#include "protobuf-matchers/protocol-buffer-matchers.h"
#include "gtest/gtest.h"
#include "internal/platform/implementation/webrtc.h"
#include "webrtc/api/jsep.h"
#include "webrtc/api/data_channel_interface.h"
#include "webrtc/api/peer_connection_interface.h"
#include "webrtc/api/scoped_refptr.h"
namespace nearby {
namespace windows {
@@ -58,8 +63,9 @@ TEST(WebrtcTest, CreatePeerConnectionSucceeds) {
auto observer = std::make_unique<MockPeerConnectionObserver>();
WebRtcMedium medium;
medium.CreatePeerConnection(
observer.get(), [](rtc::scoped_refptr<webrtc::PeerConnectionInterface>
peer_connection) mutable {
std::nullopt, observer.get(),
[](rtc::scoped_refptr<webrtc::PeerConnectionInterface>
peer_connection) mutable {
if (!peer_connection) {
FAIL() << "Peer connection should have been non-null";
return;