OLD | NEW |
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 "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "chrome/browser/media/webrtc/webrtc_browsertest_base.h" | 8 #include "chrome/browser/media/webrtc/webrtc_browsertest_base.h" |
9 #include "chrome/browser/media/webrtc/webrtc_browsertest_common.h" | 9 #include "chrome/browser/media/webrtc/webrtc_browsertest_common.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 DetectVideoAndHangUp(); | 215 DetectVideoAndHangUp(); |
216 } | 216 } |
217 | 217 |
218 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, | 218 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, |
219 RunsAudioVideoWebRTCCallInTwoTabsGetStatsPromise) { | 219 RunsAudioVideoWebRTCCallInTwoTabsGetStatsPromise) { |
220 StartServerAndOpenTabs(); | 220 StartServerAndOpenTabs(); |
221 SetupPeerconnectionWithLocalStream(left_tab_); | 221 SetupPeerconnectionWithLocalStream(left_tab_); |
222 SetupPeerconnectionWithLocalStream(right_tab_); | 222 SetupPeerconnectionWithLocalStream(right_tab_); |
223 NegotiateCall(left_tab_, right_tab_); | 223 NegotiateCall(left_tab_, right_tab_); |
224 | 224 |
225 VerifyStatsGeneratedPromise(left_tab_); | 225 std::set<std::string> missing_expected_stats; |
| 226 for (const std::string str : GetWhitelistedStatsTypes(left_tab_)) { |
| 227 missing_expected_stats.insert(str); |
| 228 } |
| 229 for (const std::string str : VerifyStatsGeneratedPromise(left_tab_)) { |
| 230 missing_expected_stats.erase(str); |
| 231 } |
| 232 // TODO(hbos): When all stats are ready and returned by "getStats": |
| 233 // EXPECT_TRUE(missing_expected_stats.empty()); |
| 234 // crbug.com/627816 |
226 | 235 |
227 DetectVideoAndHangUp(); | 236 DetectVideoAndHangUp(); |
228 } | 237 } |
OLD | NEW |