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

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

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 // 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_BASE_TESTING_BROWSER_PROCESS_H_ 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Cleanly destroys |g_browser_process|, which has special deletion semantics. 51 // Cleanly destroys |g_browser_process|, which has special deletion semantics.
52 static void DeleteInstance(); 52 static void DeleteInstance();
53 53
54 // Convenience method to get g_browser_process as a TestingBrowserProcess*. 54 // Convenience method to get g_browser_process as a TestingBrowserProcess*.
55 static TestingBrowserProcess* GetGlobal(); 55 static TestingBrowserProcess* GetGlobal();
56 56
57 virtual void ResourceDispatcherHostCreated() OVERRIDE; 57 virtual void ResourceDispatcherHostCreated() OVERRIDE;
58 virtual void EndSession() OVERRIDE; 58 virtual void EndSession() OVERRIDE;
59 virtual MetricsService* metrics_service() OVERRIDE; 59 virtual MetricsService* metrics_service() OVERRIDE;
60 virtual rappor::RapporService* rappor_service() OVERRIDE;
60 virtual IOThread* io_thread() OVERRIDE; 61 virtual IOThread* io_thread() OVERRIDE;
61 virtual WatchDogThread* watchdog_thread() OVERRIDE; 62 virtual WatchDogThread* watchdog_thread() OVERRIDE;
62 virtual ProfileManager* profile_manager() OVERRIDE; 63 virtual ProfileManager* profile_manager() OVERRIDE;
63 virtual PrefService* local_state() OVERRIDE; 64 virtual PrefService* local_state() OVERRIDE;
64 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; 65 virtual chrome_variations::VariationsService* variations_service() OVERRIDE;
65 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; 66 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE;
66 virtual policy::PolicyService* policy_service() OVERRIDE; 67 virtual policy::PolicyService* policy_service() OVERRIDE;
67 virtual IconManager* icon_manager() OVERRIDE; 68 virtual IconManager* icon_manager() OVERRIDE;
68 virtual GLStringManager* gl_string_manager() OVERRIDE; 69 virtual GLStringManager* gl_string_manager() OVERRIDE;
69 virtual GpuModeManager* gpu_mode_manager() OVERRIDE; 70 virtual GpuModeManager* gpu_mode_manager() OVERRIDE;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 class TestingBrowserProcessInitializer { 198 class TestingBrowserProcessInitializer {
198 public: 199 public:
199 TestingBrowserProcessInitializer(); 200 TestingBrowserProcessInitializer();
200 ~TestingBrowserProcessInitializer(); 201 ~TestingBrowserProcessInitializer();
201 202
202 private: 203 private:
203 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); 204 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer);
204 }; 205 };
205 206
206 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 207 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/common/metrics/metrics_log_base_unittest.cc ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698