Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Side by Side Diff: webrtc/api/peerconnectionfactory_unittest.cc

Issue 1888903003: Network thread (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/peerconnectionfactory.cc ('k') | webrtc/api/peerconnectioninterface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void OnIceCandidate(const webrtc::IceCandidateInterface* candidate) {} 79 virtual void OnIceCandidate(const webrtc::IceCandidateInterface* candidate) {}
80 }; 80 };
81 81
82 } // namespace 82 } // namespace
83 83
84 class PeerConnectionFactoryTest : public testing::Test { 84 class PeerConnectionFactoryTest : public testing::Test {
85 void SetUp() { 85 void SetUp() {
86 #ifdef WEBRTC_ANDROID 86 #ifdef WEBRTC_ANDROID
87 webrtc::InitializeAndroidObjects(); 87 webrtc::InitializeAndroidObjects();
88 #endif 88 #endif
89 factory_ = webrtc::CreatePeerConnectionFactory(rtc::Thread::Current(), 89 factory_ = webrtc::CreatePeerConnectionFactory(
90 rtc::Thread::Current(), 90 rtc::Thread::Current(), rtc::Thread::Current(), rtc::Thread::Current(),
91 NULL, 91 NULL, NULL, NULL);
92 NULL,
93 NULL);
94 92
95 ASSERT_TRUE(factory_.get() != NULL); 93 ASSERT_TRUE(factory_.get() != NULL);
96 port_allocator_.reset( 94 port_allocator_.reset(
97 new cricket::FakePortAllocator(rtc::Thread::Current(), nullptr)); 95 new cricket::FakePortAllocator(rtc::Thread::Current(), nullptr));
98 raw_port_allocator_ = port_allocator_.get(); 96 raw_port_allocator_ = port_allocator_.get();
99 } 97 }
100 98
101 protected: 99 protected:
102 void VerifyStunServers(cricket::ServerAddresses stun_servers) { 100 void VerifyStunServers(cricket::ServerAddresses stun_servers) {
103 EXPECT_EQ(stun_servers, raw_port_allocator_->stun_servers()); 101 EXPECT_EQ(stun_servers, raw_port_allocator_->stun_servers());
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 track->set_enabled(false); 345 track->set_enabled(false);
348 EXPECT_TRUE(capturer->CaptureFrame()); 346 EXPECT_TRUE(capturer->CaptureFrame());
349 EXPECT_EQ(2, local_renderer.num_rendered_frames()); 347 EXPECT_EQ(2, local_renderer.num_rendered_frames());
350 EXPECT_TRUE(local_renderer.black_frame()); 348 EXPECT_TRUE(local_renderer.black_frame());
351 349
352 track->set_enabled(true); 350 track->set_enabled(true);
353 EXPECT_TRUE(capturer->CaptureFrame()); 351 EXPECT_TRUE(capturer->CaptureFrame());
354 EXPECT_EQ(3, local_renderer.num_rendered_frames()); 352 EXPECT_EQ(3, local_renderer.num_rendered_frames());
355 EXPECT_FALSE(local_renderer.black_frame()); 353 EXPECT_FALSE(local_renderer.black_frame());
356 } 354 }
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectionfactory.cc ('k') | webrtc/api/peerconnectioninterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698