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

Side by Side Diff: chrome/test/media_router/media_router_e2e_browsertest.cc

Issue 2386633003: [Media Router] Convert MediaRouter to use GURL for presentation URLs. (Closed)
Patch Set: Respond to dcheng@ comment Created 4 years, 2 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
OLDNEW
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 <vector> 7 #include <vector>
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 MediaSourceForTab(tab_id), GURL(kOriginUrl), web_contents); 151 MediaSourceForTab(tab_id), GURL(kOriginUrl), web_contents);
152 Wait(base::TimeDelta::FromSeconds(30)); 152 Wait(base::TimeDelta::FromSeconds(30));
153 153
154 // Wait for 10 seconds to make sure route has been stopped. 154 // Wait for 10 seconds to make sure route has been stopped.
155 StopMediaRoute(); 155 StopMediaRoute();
156 Wait(base::TimeDelta::FromSeconds(10)); 156 Wait(base::TimeDelta::FromSeconds(10));
157 } 157 }
158 158
159 IN_PROC_BROWSER_TEST_F(MediaRouterE2EBrowserTest, MANUAL_CastApp) { 159 IN_PROC_BROWSER_TEST_F(MediaRouterE2EBrowserTest, MANUAL_CastApp) {
160 // Wait for 30 seconds to make sure the route is stable. 160 // Wait for 30 seconds to make sure the route is stable.
161 CreateMediaRoute(MediaSourceForPresentationUrl(kCastAppPresentationUrl), 161 CreateMediaRoute(MediaSourceForPresentationUrl(GURL(kCastAppPresentationUrl)),
162 GURL(kOriginUrl), nullptr); 162 GURL(kOriginUrl), nullptr);
163 Wait(base::TimeDelta::FromSeconds(30)); 163 Wait(base::TimeDelta::FromSeconds(30));
164 164
165 // Wait for 10 seconds to make sure route has been stopped. 165 // Wait for 10 seconds to make sure route has been stopped.
166 StopMediaRoute(); 166 StopMediaRoute();
167 Wait(base::TimeDelta::FromSeconds(10)); 167 Wait(base::TimeDelta::FromSeconds(10));
168 } 168 }
169 169
170 } // namespace media_router 170 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698