| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "build/build_config.h" |
| 15 #include "components/update_client/update_client.h" | 17 #include "components/update_client/update_client.h" |
| 16 #include "extensions/browser/extensions_browser_client.h" | 18 #include "extensions/browser/extensions_browser_client.h" |
| 17 #include "extensions/browser/updater/extension_cache.h" | 19 #include "extensions/browser/updater/extension_cache.h" |
| 18 | 20 |
| 19 namespace extensions { | 21 namespace extensions { |
| 20 | 22 |
| 21 // A simplified ExtensionsBrowserClient for a single normal browser context and | 23 // A simplified ExtensionsBrowserClient for a single normal browser context and |
| 22 // an optional incognito browser context associated with it. A test that uses | 24 // an optional incognito browser context associated with it. A test that uses |
| 23 // this class should call ExtensionsBrowserClient::Set() with its instance. | 25 // this class should call ExtensionsBrowserClient::Set() with its instance. |
| 24 class TestExtensionsBrowserClient : public ExtensionsBrowserClient { | 26 class TestExtensionsBrowserClient : public ExtensionsBrowserClient { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 scoped_ptr<ExtensionCache> extension_cache_; | 126 scoped_ptr<ExtensionCache> extension_cache_; |
| 125 | 127 |
| 126 base::Callback<update_client::UpdateClient*(void)> update_client_factory_; | 128 base::Callback<update_client::UpdateClient*(void)> update_client_factory_; |
| 127 | 129 |
| 128 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); | 130 DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient); |
| 129 }; | 131 }; |
| 130 | 132 |
| 131 } // namespace extensions | 133 } // namespace extensions |
| 132 | 134 |
| 133 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ | 135 #endif // EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |