| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 base::TimeDelta interval, | 61 base::TimeDelta interval, |
| 62 const base::Callback<bool(void)>& callback); | 62 const base::Callback<bool(void)>& callback); |
| 63 | 63 |
| 64 // Wait for a specific time. | 64 // Wait for a specific time. |
| 65 void Wait(base::TimeDelta timeout); | 65 void Wait(base::TimeDelta timeout); |
| 66 | 66 |
| 67 bool is_unpacked() const { return !extension_unpacked_.empty(); } | 67 bool is_unpacked() const { return !extension_unpacked_.empty(); } |
| 68 | 68 |
| 69 bool is_extension_host_created() const { return extension_host_created_; } | 69 bool is_extension_host_created() const { return extension_host_created_; } |
| 70 | 70 |
| 71 bool is_off_the_record() { return profile()->IsOffTheRecord(); } | 71 bool is_incognito() { return profile()->IsOffTheRecord(); } |
| 72 | 72 |
| 73 // These values are initialized via flags. | 73 // These values are initialized via flags. |
| 74 base::FilePath extension_crx_; | 74 base::FilePath extension_crx_; |
| 75 base::FilePath extension_unpacked_; | 75 base::FilePath extension_unpacked_; |
| 76 | 76 |
| 77 base::WaitableEvent extension_load_event_; | 77 base::WaitableEvent extension_load_event_; |
| 78 std::string extension_id_; | 78 std::string extension_id_; |
| 79 bool extension_host_created_; | 79 bool extension_host_created_; |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 extensions::FeatureSwitch::ScopedOverride feature_override_; | 82 extensions::FeatureSwitch::ScopedOverride feature_override_; |
| 83 DISALLOW_COPY_AND_ASSIGN(MediaRouterBaseBrowserTest); | 83 DISALLOW_COPY_AND_ASSIGN(MediaRouterBaseBrowserTest); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace media_router | 86 } // namespace media_router |
| 87 | 87 |
| 88 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_BASE_BROWSERTEST_H_ | 88 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_BASE_BROWSERTEST_H_ |
| OLD | NEW |