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

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

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
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/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop.h" 13 #include "base/message_loop.h"
13 #include "base/scoped_temp_dir.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/common/extensions/feature_switch.h" 15 #include "chrome/common/extensions/feature_switch.h"
16 #include "content/public/test/test_browser_thread.h" 16 #include "content/public/test/test_browser_thread.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 class TestingProfile; 19 class TestingProfile;
20 20
21 class ExtensionServiceTestBase : public testing::Test { 21 class ExtensionServiceTestBase : public testing::Test {
22 public: 22 public:
23 ExtensionServiceTestBase(); 23 ExtensionServiceTestBase();
(...skipping 21 matching lines...) Expand all
45 45
46 void set_extensions_enabled(bool enabled) { 46 void set_extensions_enabled(bool enabled) {
47 service_->set_extensions_enabled(enabled); 47 service_->set_extensions_enabled(enabled);
48 } 48 }
49 49
50 protected: 50 protected:
51 void InitializeExtensionServiceHelper(bool autoupdate_enabled); 51 void InitializeExtensionServiceHelper(bool autoupdate_enabled);
52 52
53 MessageLoop loop_; 53 MessageLoop loop_;
54 base::ShadowingAtExitManager at_exit_manager_; 54 base::ShadowingAtExitManager at_exit_manager_;
55 ScopedTempDir temp_dir_; 55 base::ScopedTempDir temp_dir_;
56 scoped_ptr<TestingProfile> profile_; 56 scoped_ptr<TestingProfile> profile_;
57 FilePath extensions_install_dir_; 57 FilePath extensions_install_dir_;
58 FilePath data_dir_; 58 FilePath data_dir_;
59 // Managed by extensions::ExtensionSystemFactory. 59 // Managed by extensions::ExtensionSystemFactory.
60 ExtensionService* service_; 60 ExtensionService* service_;
61 extensions::ManagementPolicy* management_policy_; 61 extensions::ManagementPolicy* management_policy_;
62 size_t expected_extensions_count_; 62 size_t expected_extensions_count_;
63 content::TestBrowserThread ui_thread_; 63 content::TestBrowserThread ui_thread_;
64 content::TestBrowserThread db_thread_; 64 content::TestBrowserThread db_thread_;
65 content::TestBrowserThread webkit_thread_; 65 content::TestBrowserThread webkit_thread_;
66 content::TestBrowserThread file_thread_; 66 content::TestBrowserThread file_thread_;
67 content::TestBrowserThread file_user_blocking_thread_; 67 content::TestBrowserThread file_user_blocking_thread_;
68 content::TestBrowserThread io_thread_; 68 content::TestBrowserThread io_thread_;
69 extensions::FeatureSwitch::ScopedOverride override_sideload_wipeout_; 69 extensions::FeatureSwitch::ScopedOverride override_sideload_wipeout_;
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ 72 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698