| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/test/media_router/media_router_e2e_browsertest.h" | 5 #include "chrome/test/media_router/media_router_e2e_browsertest.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | |
| 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 7 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 9 #include "content/public/test/browser_test_utils.h" | 8 #include "content/public/test/browser_test_utils.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 10 |
| 12 namespace media_router { | 11 namespace media_router { |
| 13 | 12 |
| 14 IN_PROC_BROWSER_TEST_F(MediaRouterE2EBrowserTest, MANUAL_MirrorHTML5Video) { | 13 IN_PROC_BROWSER_TEST_F(MediaRouterE2EBrowserTest, MANUAL_MirrorHTML5Video) { |
| 15 OpenMediaPage(); | 14 OpenMediaPage(); |
| 16 content::WebContents* web_contents = | 15 content::WebContents* web_contents = |
| 17 browser()->tab_strip_model()->GetActiveWebContents(); | 16 browser()->tab_strip_model()->GetActiveWebContents(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 ExecuteScript(web_contents, script); | 35 ExecuteScript(web_contents, script); |
| 37 OpenMRDialog(web_contents); | 36 OpenMRDialog(web_contents); |
| 38 | 37 |
| 39 // Check the mirroring session is still live. | 38 // Check the mirroring session is still live. |
| 40 ASSERT_TRUE(!GetRouteId(receiver()).empty()); | 39 ASSERT_TRUE(!GetRouteId(receiver()).empty()); |
| 41 Wait(base::TimeDelta::FromSeconds(20)); | 40 Wait(base::TimeDelta::FromSeconds(20)); |
| 42 CloseRouteOnUI(); | 41 CloseRouteOnUI(); |
| 43 } | 42 } |
| 44 | 43 |
| 45 } // namespace media_router | 44 } // namespace media_router |
| OLD | NEW |