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

Side by Side Diff: chrome/test/media_router/media_router_integration_browsertest.h

Issue 1363593003: [Media Router] Set timeout for route creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per imcheng@'s comments. Created 5 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 #ifndef CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ 5 #ifndef CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_
6 #define CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ 6 #define CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/debug/stack_trace.h" 10 #include "base/debug/stack_trace.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 bool AreRoutesClosedOnUI(); 71 bool AreRoutesClosedOnUI();
72 72
73 // Close route through clicking 'Stop casting' button in route details dialog. 73 // Close route through clicking 'Stop casting' button in route details dialog.
74 void CloseRouteOnUI(); 74 void CloseRouteOnUI();
75 75
76 // Wait for the route to show up in the UI with a timeout. Fails if the 76 // Wait for the route to show up in the UI with a timeout. Fails if the
77 // route did not show up before the timeout. 77 // route did not show up before the timeout.
78 void WaitUntilRouteCreated(); 78 void WaitUntilRouteCreated();
79 79
80 // Wait for route creation to timeout. Fails if a route shows up before the
81 // timeout.
82 void WaitUntilRouteCreationTimeout();
83
80 private: 84 private:
81 // Get the full path of the resource file. 85 // Get the full path of the resource file.
82 // |relative_path|: The relative path to 86 // |relative_path|: The relative path to
83 // <chromium src>/out/<build config>/media_router/ 87 // <chromium src>/out/<build config>/media_router/
84 // browser_test_resources/ 88 // browser_test_resources/
85 base::FilePath GetResourceFile( 89 base::FilePath GetResourceFile(
86 base::FilePath::StringPieceType relative_path) const; 90 base::FilePath::StringPieceType relative_path) const;
87 91
88 scoped_ptr<content::TestNavigationObserver> test_navigation_observer_; 92 scoped_ptr<content::TestNavigationObserver> test_navigation_observer_;
89 }; 93 };
90 94
91 } // namespace media_router 95 } // namespace media_router
92 96
93 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ 97 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698