| 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/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/process/launch.h" | 7 #include "base/process/launch.h" |
| 8 #include "base/rand_util.h" | 8 #include "base/rand_util.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/win/windows_version.h" | 10 #include "base/win/windows_version.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/media/webrtc_browsertest_base.h" | 12 #include "chrome/browser/media/webrtc_browsertest_base.h" |
| 13 #include "chrome/browser/media/webrtc_browsertest_common.h" | 13 #include "chrome/browser/media/webrtc_browsertest_common.h" |
| 14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/browser_tabstrip.h" | 15 #include "chrome/browser/ui/browser_tabstrip.h" |
| 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/test/base/ui_test_utils.h" | 18 #include "chrome/test/base/ui_test_utils.h" |
| 19 #include "chrome/test/ui/ui_test.h" | |
| 20 #include "content/public/test/browser_test_utils.h" | 19 #include "content/public/test/browser_test_utils.h" |
| 21 #include "media/base/media_switches.h" | 20 #include "media/base/media_switches.h" |
| 22 #include "net/test/python_utils.h" | 21 #include "net/test/python_utils.h" |
| 23 #include "ui/gl/gl_switches.h" | 22 #include "ui/gl/gl_switches.h" |
| 24 | 23 |
| 25 // You need this solution to run this test. The solution will download appengine | 24 // You need this solution to run this test. The solution will download appengine |
| 26 // and the apprtc code for you. | 25 // and the apprtc code for you. |
| 27 const char kAdviseOnGclientSolution[] = | 26 const char kAdviseOnGclientSolution[] = |
| 28 "You need to add this solution to your .gclient to run this test:\n" | 27 "You need to add this solution to your .gclient to run this test:\n" |
| 29 "{\n" | 28 "{\n" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 base::RandInt(0, 65536))); | 240 base::RandInt(0, 65536))); |
| 242 content::WebContents* chrome_tab = OpenPageAndAcceptUserMedia(room_url); | 241 content::WebContents* chrome_tab = OpenPageAndAcceptUserMedia(room_url); |
| 243 | 242 |
| 244 ASSERT_TRUE(LaunchFirefoxWithUrl(room_url)); | 243 ASSERT_TRUE(LaunchFirefoxWithUrl(room_url)); |
| 245 | 244 |
| 246 ASSERT_TRUE(WaitForCallToComeUp(chrome_tab)); | 245 ASSERT_TRUE(WaitForCallToComeUp(chrome_tab)); |
| 247 | 246 |
| 248 // Ensure Firefox manages to send video our way. | 247 // Ensure Firefox manages to send video our way. |
| 249 ASSERT_TRUE(DetectRemoteVideoPlaying(chrome_tab)); | 248 ASSERT_TRUE(DetectRemoteVideoPlaying(chrome_tab)); |
| 250 } | 249 } |
| OLD | NEW |