| Index: extensions/browser/test_extensions_browser_client.h
|
| diff --git a/extensions/browser/test_extensions_browser_client.h b/extensions/browser/test_extensions_browser_client.h
|
| index 274a8a98157310eb5e589db79e0b11340b4d1790..be660e7e6d80f813525c33b01ef491ba1b1fda25 100644
|
| --- a/extensions/browser/test_extensions_browser_client.h
|
| +++ b/extensions/browser/test_extensions_browser_client.h
|
| @@ -5,7 +5,13 @@
|
| #ifndef EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_
|
| #define EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_
|
|
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +#include "base/callback.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "components/update_client/update_client.h"
|
| #include "extensions/browser/extensions_browser_client.h"
|
| #include "extensions/browser/updater/extension_cache.h"
|
|
|
| @@ -30,6 +36,10 @@ class TestExtensionsBrowserClient : public ExtensionsBrowserClient {
|
| extension_cache_ = extension_cache.Pass();
|
| }
|
|
|
| + // Sets a factory to respond to calls of the CreateUpdateClient method.
|
| + void SetUpdateClientFactory(
|
| + const base::Callback<update_client::UpdateClient*(void)>& factory);
|
| +
|
| // Associates an incognito context with |main_context_|.
|
| void SetIncognitoContext(content::BrowserContext* incognito_context);
|
|
|
| @@ -97,6 +107,8 @@ class TestExtensionsBrowserClient : public ExtensionsBrowserClient {
|
| bool IsMinBrowserVersionSupported(const std::string& min_version) override;
|
| ExtensionWebContentsObserver* GetExtensionWebContentsObserver(
|
| content::WebContents* web_contents) override;
|
| + scoped_refptr<update_client::UpdateClient> CreateUpdateClient(
|
| + content::BrowserContext* context) override;
|
|
|
| private:
|
| content::BrowserContext* main_context_; // Not owned.
|
| @@ -110,6 +122,8 @@ class TestExtensionsBrowserClient : public ExtensionsBrowserClient {
|
|
|
| scoped_ptr<ExtensionCache> extension_cache_;
|
|
|
| + base::Callback<update_client::UpdateClient*(void)> update_client_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(TestExtensionsBrowserClient);
|
| };
|
|
|
|
|