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/files/file_enumerator.h" | 6 #include "base/files/file_enumerator.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/process/launch.h" | 8 #include "base/process/launch.h" |
9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 firefox_ = base::LaunchProcess(command_line, base::LaunchOptions()); | 225 firefox_ = base::LaunchProcess(command_line, base::LaunchOptions()); |
226 return firefox_.IsValid(); | 226 return firefox_.IsValid(); |
227 } | 227 } |
228 | 228 |
229 private: | 229 private: |
230 base::Process dev_appserver_; | 230 base::Process dev_appserver_; |
231 base::Process firefox_; | 231 base::Process firefox_; |
232 base::Process collider_server_; | 232 base::Process collider_server_; |
233 }; | 233 }; |
234 | 234 |
235 IN_PROC_BROWSER_TEST_F(WebRtcApprtcBrowserTest, MANUAL_WorksOnApprtc) { | 235 // Disabling while the AppRTC application is being fixed. |
| 236 // See crbug.com/467471 for details. |
| 237 IN_PROC_BROWSER_TEST_F(WebRtcApprtcBrowserTest, DISABLED_MANUAL_WorksOnApprtc) { |
236 // Disabled on Win XP: http://code.google.com/p/webrtc/issues/detail?id=2703. | 238 // Disabled on Win XP: http://code.google.com/p/webrtc/issues/detail?id=2703. |
237 if (OnWinXp()) | 239 if (OnWinXp()) |
238 return; | 240 return; |
239 | 241 |
240 DetectErrorsInJavaScript(); | 242 DetectErrorsInJavaScript(); |
241 ASSERT_TRUE(LaunchApprtcInstanceOnLocalhost("9999")); | 243 ASSERT_TRUE(LaunchApprtcInstanceOnLocalhost("9999")); |
242 ASSERT_TRUE(LaunchColliderOnLocalHost("http://localhost:9999", "8089")); | 244 ASSERT_TRUE(LaunchColliderOnLocalHost("http://localhost:9999", "8089")); |
243 while (!LocalApprtcInstanceIsUp()) | 245 while (!LocalApprtcInstanceIsUp()) |
244 DVLOG(1) << "Waiting for AppRTC to come up..."; | 246 DVLOG(1) << "Waiting for AppRTC to come up..."; |
245 | 247 |
(...skipping 10 matching lines...) Expand all Loading... |
256 ASSERT_TRUE(WaitForCallToComeUp(right_tab)); | 258 ASSERT_TRUE(WaitForCallToComeUp(right_tab)); |
257 | 259 |
258 ASSERT_TRUE(DetectRemoteVideoPlaying(left_tab)); | 260 ASSERT_TRUE(DetectRemoteVideoPlaying(left_tab)); |
259 ASSERT_TRUE(DetectRemoteVideoPlaying(right_tab)); | 261 ASSERT_TRUE(DetectRemoteVideoPlaying(right_tab)); |
260 | 262 |
261 chrome::CloseWebContents(browser(), left_tab, false); | 263 chrome::CloseWebContents(browser(), left_tab, false); |
262 chrome::CloseWebContents(browser(), right_tab, false); | 264 chrome::CloseWebContents(browser(), right_tab, false); |
263 } | 265 } |
264 | 266 |
265 #if defined(OS_LINUX) | 267 #if defined(OS_LINUX) |
266 #define MAYBE_MANUAL_FirefoxApprtcInteropTest MANUAL_FirefoxApprtcInteropTest | 268 // Disabling while the AppRTC application is being fixed. |
| 269 // See crbug.com/467471 for details. |
| 270 #define MAYBE_MANUAL_FirefoxApprtcInteropTest DISABLED_MANUAL_FirefoxApprtcInter
opTest |
267 #else | 271 #else |
268 // Not implemented yet on Windows and Mac. | 272 // Not implemented yet on Windows and Mac. |
269 #define MAYBE_MANUAL_FirefoxApprtcInteropTest DISABLED_MANUAL_FirefoxApprtcInter
opTest | 273 #define MAYBE_MANUAL_FirefoxApprtcInteropTest DISABLED_MANUAL_FirefoxApprtcInter
opTest |
270 #endif | 274 #endif |
271 | 275 |
272 IN_PROC_BROWSER_TEST_F(WebRtcApprtcBrowserTest, | 276 IN_PROC_BROWSER_TEST_F(WebRtcApprtcBrowserTest, |
273 MAYBE_MANUAL_FirefoxApprtcInteropTest) { | 277 MAYBE_MANUAL_FirefoxApprtcInteropTest) { |
274 // Disabled on Win XP: http://code.google.com/p/webrtc/issues/detail?id=2703. | 278 // Disabled on Win XP: http://code.google.com/p/webrtc/issues/detail?id=2703. |
275 if (OnWinXp()) | 279 if (OnWinXp()) |
276 return; | 280 return; |
277 | 281 |
278 DetectErrorsInJavaScript(); | 282 DetectErrorsInJavaScript(); |
279 ASSERT_TRUE(LaunchApprtcInstanceOnLocalhost("9999")); | 283 ASSERT_TRUE(LaunchApprtcInstanceOnLocalhost("9999")); |
280 ASSERT_TRUE(LaunchColliderOnLocalHost("http://localhost:9999", "8089")); | 284 ASSERT_TRUE(LaunchColliderOnLocalHost("http://localhost:9999", "8089")); |
281 while (!LocalApprtcInstanceIsUp()) | 285 while (!LocalApprtcInstanceIsUp()) |
282 DVLOG(1) << "Waiting for AppRTC to come up..."; | 286 DVLOG(1) << "Waiting for AppRTC to come up..."; |
283 | 287 |
284 GURL room_url = GURL("http://localhost:9999/r/some_room" | 288 GURL room_url = GURL("http://localhost:9999/r/some_room" |
285 "?wshpp=localhost:8089&wstls=false" | 289 "?wshpp=localhost:8089&wstls=false" |
286 "&firefox_fake_device=1"); | 290 "&firefox_fake_device=1"); |
287 content::WebContents* chrome_tab = OpenPageAndAcceptUserMedia(room_url); | 291 content::WebContents* chrome_tab = OpenPageAndAcceptUserMedia(room_url); |
288 | 292 |
289 ASSERT_TRUE(LaunchFirefoxWithUrl(room_url)); | 293 ASSERT_TRUE(LaunchFirefoxWithUrl(room_url)); |
290 | 294 |
291 ASSERT_TRUE(WaitForCallToComeUp(chrome_tab)); | 295 ASSERT_TRUE(WaitForCallToComeUp(chrome_tab)); |
292 | 296 |
293 // Ensure Firefox manages to send video our way. | 297 // Ensure Firefox manages to send video our way. |
294 ASSERT_TRUE(DetectRemoteVideoPlaying(chrome_tab)); | 298 ASSERT_TRUE(DetectRemoteVideoPlaying(chrome_tab)); |
295 } | 299 } |
OLD | NEW |