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

Side by Side Diff: trunk/src/content/browser/media/webrtc_getusermedia_browsertest.cc

Issue 364233006: Revert 281326 "Speculatively re-enabling all WebRTC content brow..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/build/android/pylib/gtest/filter/content_browsertests_disabled ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/debug/trace_event_impl.h" 6 #include "base/debug/trace_event_impl.h"
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/test/trace_event_analyzer.h" 9 #include "base/test/trace_event_analyzer.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); 302 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
303 303
304 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html")); 304 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html"));
305 NavigateToURL(shell(), url); 305 NavigateToURL(shell(), url);
306 306
307 ExecuteJavascriptAndWaitForOk( 307 ExecuteJavascriptAndWaitForOk(
308 base::StringPrintf("%s({video: true});", 308 base::StringPrintf("%s({video: true});",
309 kRenderDuplicatedMediastreamAndStop)); 309 kRenderDuplicatedMediastreamAndStop));
310 } 310 }
311 311
312 // Flaky on Android. http://crbug.com/387895
313 #if defined(OS_ANDROID)
314 #define MAYBE_GetAudioAndVideoStreamAndStop DISABLED_GetAudioAndVideoStreamAndSt op
315 #else
316 #define MAYBE_GetAudioAndVideoStreamAndStop GetAudioAndVideoStreamAndStop
317 #endif
318
312 IN_PROC_BROWSER_TEST_P(WebRtcGetUserMediaBrowserTest, 319 IN_PROC_BROWSER_TEST_P(WebRtcGetUserMediaBrowserTest,
313 GetAudioAndVideoStreamAndStop) { 320 MAYBE_GetAudioAndVideoStreamAndStop) {
314 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); 321 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
315 322
316 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html")); 323 GURL url(embedded_test_server()->GetURL("/media/getusermedia.html"));
317 NavigateToURL(shell(), url); 324 NavigateToURL(shell(), url);
318 325
319 ExecuteJavascriptAndWaitForOk(base::StringPrintf( 326 ExecuteJavascriptAndWaitForOk(base::StringPrintf(
320 "%s({video: true, audio: true});", kGetUserMediaAndStop)); 327 "%s({video: true, audio: true});", kGetUserMediaAndStop));
321 } 328 }
322 329
323 IN_PROC_BROWSER_TEST_P(WebRtcGetUserMediaBrowserTest, 330 IN_PROC_BROWSER_TEST_P(WebRtcGetUserMediaBrowserTest,
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 } 620 }
614 621
615 static const UserMediaSizes kAllUserMediaSizes[] = { 622 static const UserMediaSizes kAllUserMediaSizes[] = {
616 {320, 320, 180, 180, 10, 30}, 623 {320, 320, 180, 180, 10, 30},
617 {320, 320, 240, 240, 10, 30}, 624 {320, 320, 240, 240, 10, 30},
618 {640, 640, 360, 360, 10, 30}, 625 {640, 640, 360, 360, 10, 30},
619 {640, 640, 480, 480, 10, 30}, 626 {640, 640, 480, 480, 10, 30},
620 {960, 960, 720, 720, 10, 30}, 627 {960, 960, 720, 720, 10, 30},
621 {1280, 1280, 720, 720, 10, 30}}; 628 {1280, 1280, 720, 720, 10, 30}};
622 629
623 INSTANTIATE_TEST_CASE_P(WebRtcConstraintsBrowserTests, 630 INSTANTIATE_TEST_CASE_P(UserMedia,
624 WebRtcConstraintsBrowserTest, 631 WebRtcConstraintsBrowserTest,
625 testing::ValuesIn(kAllUserMediaSizes)); 632 testing::ValuesIn(kAllUserMediaSizes));
626 633
627 } // namespace content 634 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/build/android/pylib/gtest/filter/content_browsertests_disabled ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698