Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Side by Side Diff: chrome/browser/extensions/test_extension_system.h

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "extensions/browser/extension_system.h" 9 #include "extensions/browser/extension_system.h"
10 #include "extensions/common/one_shot_event.h" 10 #include "extensions/common/one_shot_event.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 StateStore* state_store() override; 51 StateStore* state_store() override;
52 StateStore* rules_store() override; 52 StateStore* rules_store() override;
53 TestingValueStore* value_store() { return value_store_; } 53 TestingValueStore* value_store() { return value_store_; }
54 InfoMap* info_map() override; 54 InfoMap* info_map() override;
55 QuotaService* quota_service() override; 55 QuotaService* quota_service() override;
56 AppSorting* app_sorting() override; 56 AppSorting* app_sorting() override;
57 const OneShotEvent& ready() const override; 57 const OneShotEvent& ready() const override;
58 ContentVerifier* content_verifier() override; 58 ContentVerifier* content_verifier() override;
59 scoped_ptr<ExtensionSet> GetDependentExtensions( 59 scoped_ptr<ExtensionSet> GetDependentExtensions(
60 const Extension* extension) override; 60 const Extension* extension) override;
61 void InstallUpdate(const std::string& extension_id,
62 const base::FilePath& temp_dir) override;
61 63
62 // Note that you probably want to use base::RunLoop().RunUntilIdle() right 64 // Note that you probably want to use base::RunLoop().RunUntilIdle() right
63 // after this to run all the accumulated tasks. 65 // after this to run all the accumulated tasks.
64 void SetReady() { ready_.Signal(); } 66 void SetReady() { ready_.Signal(); }
65 67
66 // Factory method for tests to use with SetTestingProfile. 68 // Factory method for tests to use with SetTestingProfile.
67 static scoped_ptr<KeyedService> Build(content::BrowserContext* profile); 69 static scoped_ptr<KeyedService> Build(content::BrowserContext* profile);
68 70
69 // Used by ExtensionPrefsTest to re-create the AppSorting after it has 71 // Used by ExtensionPrefsTest to re-create the AppSorting after it has
70 // re-created the ExtensionPrefs instance (this can never happen in non-test 72 // re-created the ExtensionPrefs instance (this can never happen in non-test
(...skipping 12 matching lines...) Expand all
83 scoped_ptr<ExtensionService> extension_service_; 85 scoped_ptr<ExtensionService> extension_service_;
84 scoped_refptr<InfoMap> info_map_; 86 scoped_refptr<InfoMap> info_map_;
85 scoped_ptr<QuotaService> quota_service_; 87 scoped_ptr<QuotaService> quota_service_;
86 scoped_ptr<AppSorting> app_sorting_; 88 scoped_ptr<AppSorting> app_sorting_;
87 OneShotEvent ready_; 89 OneShotEvent ready_;
88 }; 90 };
89 91
90 } // namespace extensions 92 } // namespace extensions
91 93
92 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 94 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.cc ('k') | chrome/browser/extensions/test_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698