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

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

Issue 7465041: GTTF: Use a fresh TestingBrowserProcess for each test, part #4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/scoped_temp_dir.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/test/testing_browser_process_test.h"
15 #include "content/browser/browser_thread.h" 16 #include "content/browser/browser_thread.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 18
18 class ExtensionServiceTestBase : public testing::Test { 19 class ExtensionServiceTestBase : public TestingBrowserProcessTest {
19 public: 20 public:
20 ExtensionServiceTestBase(); 21 ExtensionServiceTestBase();
21 virtual ~ExtensionServiceTestBase(); 22 virtual ~ExtensionServiceTestBase();
22 23
23 void InitializeExtensionService( 24 void InitializeExtensionService(
24 const FilePath& pref_file, const FilePath& extensions_install_dir, 25 const FilePath& pref_file, const FilePath& extensions_install_dir,
25 bool autoupdate_enabled); 26 bool autoupdate_enabled);
26 27
27 void InitializeInstalledExtensionService( 28 void InitializeInstalledExtensionService(
28 const FilePath& prefs_file, const FilePath& source_install_dir); 29 const FilePath& prefs_file, const FilePath& source_install_dir);
(...skipping 22 matching lines...) Expand all
51 size_t total_successes_; 52 size_t total_successes_;
52 MessageLoop loop_; 53 MessageLoop loop_;
53 BrowserThread ui_thread_; 54 BrowserThread ui_thread_;
54 BrowserThread db_thread_; 55 BrowserThread db_thread_;
55 BrowserThread webkit_thread_; 56 BrowserThread webkit_thread_;
56 BrowserThread file_thread_; 57 BrowserThread file_thread_;
57 BrowserThread io_thread_; 58 BrowserThread io_thread_;
58 }; 59 };
59 60
60 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ 61 #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