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

Side by Side Diff: chrome/browser/media/webrtc/webrtc_browsertest.cc

Issue 2677233002: Expose RTCPeerConnection.icegatheringstatechange. (Closed)
Patch Set: add onicegatheringstatechange test Created 3 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "build/build_config.h" 6 #include "build/build_config.h"
7 #include "chrome/browser/media/webrtc/webrtc_browsertest_base.h" 7 #include "chrome/browser/media/webrtc/webrtc_browsertest_base.h"
8 #include "chrome/browser/media/webrtc/webrtc_browsertest_common.h" 8 #include "chrome/browser/media/webrtc/webrtc_browsertest_common.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_tabstrip.h" 10 #include "chrome/browser/ui/browser_tabstrip.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 for (const std::string& type : VerifyStatsGeneratedPromise(left_tab_)) { 224 for (const std::string& type : VerifyStatsGeneratedPromise(left_tab_)) {
225 missing_expected_stats.erase(type); 225 missing_expected_stats.erase(type);
226 } 226 }
227 for (const std::string& type : missing_expected_stats) { 227 for (const std::string& type : missing_expected_stats) {
228 EXPECT_TRUE(false) << "Expected stats dictionary is missing: " << type; 228 EXPECT_TRUE(false) << "Expected stats dictionary is missing: " << type;
229 } 229 }
230 230
231 DetectVideoAndHangUp(); 231 DetectVideoAndHangUp();
232 } 232 }
233
234 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
235 RunsAudioVideoWebRTCCallInTwoTabsEmitsGatheringStateChang e) {
236 StartServerAndOpenTabs();
237 SetupPeerconnectionWithLocalStream(left_tab_);
238 SetupPeerconnectionWithLocalStream(right_tab_);
239 NegotiateCall(left_tab_, right_tab_);
240
241 std::string ice_gatheringstate =
242 ExecuteJavascript("getLastGatheringState()", left_tab_);
243
244 EXPECT_EQ("complete", ice_gatheringstate);
245 DetectVideoAndHangUp();
246 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698