Chromium Code Reviews| 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 #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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |