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

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

Issue 1962673002: WebRtcBrowserTest prep-CL for IndexedDB cloning of RTCCertificate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits 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 | « no previous file | chrome/browser/media/webrtc_browsertest_base.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 // 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_browsertest_base.h" 8 #include "chrome/browser/media/webrtc_browsertest_base.h"
9 #include "chrome/browser/media/webrtc_browsertest_common.h" 9 #include "chrome/browser/media/webrtc_browsertest_common.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 WaitForVideoToPlay(left_tab); 77 WaitForVideoToPlay(left_tab);
78 WaitForVideoToPlay(right_tab); 78 WaitForVideoToPlay(right_tab);
79 #endif 79 #endif
80 80
81 HangUp(left_tab); 81 HangUp(left_tab);
82 HangUp(right_tab); 82 HangUp(right_tab);
83 } 83 }
84 }; 84 };
85 85
86 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, 86 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
87 RunsAudioVideoWebRTCCallInTwoTabsOfferRsaAnswerRsa) {
88 RunsAudioVideoWebRTCCallInTwoTabs(WebRtcTestBase::kUseDefaultVideoCodec,
89 kKeygenAlgorithmRsa,
90 kKeygenAlgorithmRsa);
91 }
92
93 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
94 RunsAudioVideoWebRTCCallInTwoTabsOfferEcdsaAnswerEcdsa) {
95 RunsAudioVideoWebRTCCallInTwoTabs(WebRtcTestBase::kUseDefaultVideoCodec,
96 kKeygenAlgorithmEcdsa,
97 kKeygenAlgorithmEcdsa);
98 }
99
100 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
101 RunsAudioVideoWebRTCCallInTwoTabsOfferRsaAnswerEcdsa) {
102 RunsAudioVideoWebRTCCallInTwoTabs(WebRtcTestBase::kUseDefaultVideoCodec,
103 kKeygenAlgorithmRsa,
104 kKeygenAlgorithmEcdsa);
105 }
106
107 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
108 RunsAudioVideoWebRTCCallInTwoTabsOfferEcdsaAnswerRsa) {
109 RunsAudioVideoWebRTCCallInTwoTabs(WebRtcTestBase::kUseDefaultVideoCodec,
110 kKeygenAlgorithmEcdsa,
111 kKeygenAlgorithmRsa);
112 }
113
114 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
115 RunsAudioVideoWebRTCCallInTwoTabsVP8) { 87 RunsAudioVideoWebRTCCallInTwoTabsVP8) {
116 RunsAudioVideoWebRTCCallInTwoTabs("VP8"); 88 RunsAudioVideoWebRTCCallInTwoTabs("VP8");
117 } 89 }
118 90
119 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, 91 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
120 RunsAudioVideoWebRTCCallInTwoTabsVP9) { 92 RunsAudioVideoWebRTCCallInTwoTabsVP9) {
121 RunsAudioVideoWebRTCCallInTwoTabs("VP9"); 93 RunsAudioVideoWebRTCCallInTwoTabs("VP9");
122 } 94 }
123 95
124 #if BUILDFLAG(RTC_USE_H264) 96 #if BUILDFLAG(RTC_USE_H264)
(...skipping 21 matching lines...) Expand all
146 GURL url(embedded_test_server()->GetURL("/webrtc/webaudio_crash.html")); 118 GURL url(embedded_test_server()->GetURL("/webrtc/webaudio_crash.html"));
147 ui_test_utils::NavigateToURL(browser(), url); 119 ui_test_utils::NavigateToURL(browser(), url);
148 content::WebContents* tab = 120 content::WebContents* tab =
149 browser()->tab_strip_model()->GetActiveWebContents(); 121 browser()->tab_strip_model()->GetActiveWebContents();
150 122
151 // A sleep is necessary to be able to detect the crash. 123 // A sleep is necessary to be able to detect the crash.
152 test::SleepInJavascript(tab, 1000); 124 test::SleepInJavascript(tab, 1000);
153 125
154 ASSERT_FALSE(tab->IsCrashed()); 126 ASSERT_FALSE(tab->IsCrashed());
155 } 127 }
128
129 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
130 RunsAudioVideoWebRTCCallInTwoTabsOfferRsaAnswerRsa) {
131 RunsAudioVideoWebRTCCallInTwoTabs(WebRtcTestBase::kUseDefaultVideoCodec,
132 kKeygenAlgorithmRsa,
133 kKeygenAlgorithmRsa);
134 }
135
136 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
137 RunsAudioVideoWebRTCCallInTwoTabsOfferEcdsaAnswerEcdsa) {
138 RunsAudioVideoWebRTCCallInTwoTabs(WebRtcTestBase::kUseDefaultVideoCodec,
139 kKeygenAlgorithmEcdsa,
140 kKeygenAlgorithmEcdsa);
141 }
142
143 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
144 RunsAudioVideoWebRTCCallInTwoTabsOfferRsaAnswerEcdsa) {
145 RunsAudioVideoWebRTCCallInTwoTabs(WebRtcTestBase::kUseDefaultVideoCodec,
146 kKeygenAlgorithmRsa,
147 kKeygenAlgorithmEcdsa);
148 }
149
150 IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest,
151 RunsAudioVideoWebRTCCallInTwoTabsOfferEcdsaAnswerRsa) {
152 RunsAudioVideoWebRTCCallInTwoTabs(WebRtcTestBase::kUseDefaultVideoCodec,
153 kKeygenAlgorithmEcdsa,
154 kKeygenAlgorithmRsa);
155 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/webrtc_browsertest_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698