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

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

Issue 2634213002: [Media Router] Add integration browser tests (Closed)
Patch Set: Created 3 years, 11 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_BASE_BROWSERTEST_H_ 5 #ifndef CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_BASE_BROWSERTEST_H_
6 #define CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_BASE_BROWSERTEST_H_ 6 #define CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_BASE_BROWSERTEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // InProcessBrowserTest Overrides 37 // InProcessBrowserTest Overrides
38 void SetUp() override; 38 void SetUp() override;
39 void TearDown() override; 39 void TearDown() override;
40 40
41 protected: 41 protected:
42 // InProcessBrowserTest Overrides 42 // InProcessBrowserTest Overrides
43 void SetUpOnMainThread() override; 43 void SetUpOnMainThread() override;
44 void TearDownOnMainThread() override; 44 void TearDownOnMainThread() override;
45 45
46 // Installs the Media Router extension for the incognito profile and returns
47 // an incognito browser.
48 Browser* GetIncognitoBrowserWithMRExtension();
mark a. foltz 2017/01/20 19:00:09 It seems inconsistent for this to return a Browser
takumif 2017/02/07 22:17:35 Making a subclass for incognito.
49
46 void InstallAndEnableMRExtension(); 50 void InstallAndEnableMRExtension();
47 void UninstallMRExtension(); 51 void UninstallMRExtension();
48 52
49 virtual void ParseCommandLine(); 53 virtual void ParseCommandLine();
50 54
51 // extensions::ProcessManagerObserver Overrides 55 // extensions::ProcessManagerObserver Overrides
52 void OnBackgroundHostCreated(extensions::ExtensionHost* host) override; 56 void OnBackgroundHostCreated(extensions::ExtensionHost* host) override;
53 57
54 // Wait until get the successful callback or timeout. 58 // Wait until get the successful callback or timeout.
55 // Returns true if the condition is satisfied before the timeout. 59 // Returns true if the condition is satisfied before the timeout.
(...skipping 19 matching lines...) Expand all
75 std::string extension_id_; 79 std::string extension_id_;
76 bool extension_host_created_; 80 bool extension_host_created_;
77 81
78 private: 82 private:
79 DISALLOW_COPY_AND_ASSIGN(MediaRouterBaseBrowserTest); 83 DISALLOW_COPY_AND_ASSIGN(MediaRouterBaseBrowserTest);
80 }; 84 };
81 85
82 } // namespace media_router 86 } // namespace media_router
83 87
84 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_BASE_BROWSERTEST_H_ 88 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_BASE_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698