| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
| 14 #include "chrome/browser/extensions/extension_apitest.h" | 14 #include "chrome/browser/extensions/extension_apitest.h" |
| 15 #include "extensions/browser/process_manager_observer.h" | 15 #include "extensions/browser/process_manager_observer.h" |
| 16 #include "extensions/common/feature_switch.h" | |
| 17 | 16 |
| 18 namespace media_router { | 17 namespace media_router { |
| 19 | 18 |
| 20 class MediaRouter; | 19 class MediaRouter; |
| 21 | 20 |
| 22 /** | 21 /** |
| 23 * Base class for media router browser test. | 22 * Base class for media router browser test. |
| 24 * | 23 * |
| 25 * It provides the basic functions for integration and e2e browser tests, | 24 * It provides the basic functions for integration and e2e browser tests, |
| 26 * including install unpacked or packed extension at beginning of the test, | 25 * including install unpacked or packed extension at beginning of the test, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 71 |
| 73 // These values are initialized via flags. | 72 // These values are initialized via flags. |
| 74 base::FilePath extension_crx_; | 73 base::FilePath extension_crx_; |
| 75 base::FilePath extension_unpacked_; | 74 base::FilePath extension_unpacked_; |
| 76 | 75 |
| 77 base::WaitableEvent extension_load_event_; | 76 base::WaitableEvent extension_load_event_; |
| 78 std::string extension_id_; | 77 std::string extension_id_; |
| 79 bool extension_host_created_; | 78 bool extension_host_created_; |
| 80 | 79 |
| 81 private: | 80 private: |
| 82 extensions::FeatureSwitch::ScopedOverride feature_override_; | |
| 83 DISALLOW_COPY_AND_ASSIGN(MediaRouterBaseBrowserTest); | 81 DISALLOW_COPY_AND_ASSIGN(MediaRouterBaseBrowserTest); |
| 84 }; | 82 }; |
| 85 | 83 |
| 86 } // namespace media_router | 84 } // namespace media_router |
| 87 | 85 |
| 88 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_BASE_BROWSERTEST_H_ | 86 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_BASE_BROWSERTEST_H_ |
| OLD | NEW |