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

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

Issue 12220122: Move calls of ManifestHandler::ClearRegistryForTesting to TearDown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EXTENSION_SERVICE_UNITTEST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 30 matching lines...) Expand all
41 void InitializeExtensionProcessManager(); 41 void InitializeExtensionProcessManager();
42 42
43 void InitializeExtensionServiceWithUpdater(); 43 void InitializeExtensionServiceWithUpdater();
44 44
45 void InitializeRequestContext(); 45 void InitializeRequestContext();
46 46
47 static void SetUpTestCase(); 47 static void SetUpTestCase();
48 48
49 virtual void SetUp() OVERRIDE; 49 virtual void SetUp() OVERRIDE;
50 50
51 virtual void TearDown() OVERRIDE;
52
51 void set_extensions_enabled(bool enabled) { 53 void set_extensions_enabled(bool enabled) {
52 service_->set_extensions_enabled(enabled); 54 service_->set_extensions_enabled(enabled);
53 } 55 }
54 56
55 protected: 57 protected:
56 void InitializeExtensionServiceHelper(bool autoupdate_enabled); 58 void InitializeExtensionServiceHelper(bool autoupdate_enabled);
57 59
58 MessageLoop loop_; 60 MessageLoop loop_;
59 base::ShadowingAtExitManager at_exit_manager_; 61 base::ShadowingAtExitManager at_exit_manager_;
60 base::ScopedTempDir temp_dir_; 62 base::ScopedTempDir temp_dir_;
61 scoped_ptr<TestingProfile> profile_; 63 scoped_ptr<TestingProfile> profile_;
62 base::FilePath extensions_install_dir_; 64 base::FilePath extensions_install_dir_;
63 base::FilePath data_dir_; 65 base::FilePath data_dir_;
64 // Managed by extensions::ExtensionSystemFactory. 66 // Managed by extensions::ExtensionSystemFactory.
65 ExtensionService* service_; 67 ExtensionService* service_;
66 extensions::ManagementPolicy* management_policy_; 68 extensions::ManagementPolicy* management_policy_;
67 size_t expected_extensions_count_; 69 size_t expected_extensions_count_;
68 content::TestBrowserThread ui_thread_; 70 content::TestBrowserThread ui_thread_;
69 content::TestBrowserThread db_thread_; 71 content::TestBrowserThread db_thread_;
70 content::TestBrowserThread webkit_thread_; 72 content::TestBrowserThread webkit_thread_;
71 content::TestBrowserThread file_thread_; 73 content::TestBrowserThread file_thread_;
72 content::TestBrowserThread file_user_blocking_thread_; 74 content::TestBrowserThread file_user_blocking_thread_;
73 content::TestBrowserThread io_thread_; 75 content::TestBrowserThread io_thread_;
74 extensions::FeatureSwitch::ScopedOverride override_sideload_wipeout_; 76 extensions::FeatureSwitch::ScopedOverride override_sideload_wipeout_;
75 }; 77 };
76 78
77 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ 79 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698