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

Side by Side Diff: chrome/test/testing_browser_process.h

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // An implementation of BrowserProcess for unit tests that fails for most 5 // An implementation of BrowserProcess for unit tests that fails for most
6 // services. By preventing creation of services, we reduce dependencies and 6 // services. By preventing creation of services, we reduce dependencies and
7 // keep the profile clean. Clients of this class must handle the NULL return 7 // keep the profile clean. Clients of this class must handle the NULL return
8 // value, however. 8 // value, however.
9 9
10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_
11 #define CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 11 #define CHROME_TEST_TESTING_BROWSER_PROCESS_H_
12 #pragma once 12 #pragma once
13 13
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 15
16 #include <string> 16 #include <string>
17 17
18 #include "app/clipboard/clipboard.h" 18 #include "app/clipboard/clipboard.h"
19 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "base/waitable_event.h" 20 #include "base/waitable_event.h"
21 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
22 #include "chrome/browser/google_url_tracker.h" 22 #include "chrome/browser/google_url_tracker.h"
23 #include "chrome/browser/pref_service.h" 23 #include "chrome/browser/prefs/pref_service.h"
24 #include "chrome/common/notification_service.h" 24 #include "chrome/common/notification_service.h"
25 25
26 class IOThread; 26 class IOThread;
27 27
28 class TestingBrowserProcess : public BrowserProcess { 28 class TestingBrowserProcess : public BrowserProcess {
29 public: 29 public:
30 TestingBrowserProcess() 30 TestingBrowserProcess()
31 : shutdown_event_(new base::WaitableEvent(true, false)), 31 : shutdown_event_(new base::WaitableEvent(true, false)),
32 module_ref_count_(0), 32 module_ref_count_(0),
33 app_locale_("en"), 33 app_locale_("en"),
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 scoped_ptr<Clipboard> clipboard_; 178 scoped_ptr<Clipboard> clipboard_;
179 std::string app_locale_; 179 std::string app_locale_;
180 180
181 PrefService* pref_service_; 181 PrefService* pref_service_;
182 scoped_ptr<GoogleURLTracker> google_url_tracker_; 182 scoped_ptr<GoogleURLTracker> google_url_tracker_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 184 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
185 }; 185 };
186 186
187 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 187 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698