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

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

Issue 10958: reverting changelist to see if it effects vista (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « chrome/renderer/renderer_main.cc ('k') | chrome/views/container_win.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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__
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 virtual const std::wstring& GetApplicationLocale() { 112 virtual const std::wstring& GetApplicationLocale() {
113 static std::wstring* value = NULL; 113 static std::wstring* value = NULL;
114 if (!value) 114 if (!value)
115 value = new std::wstring(L"en"); 115 value = new std::wstring(L"en");
116 return *value; 116 return *value;
117 } 117 }
118 118
119 virtual MemoryModel memory_model() { return HIGH_MEMORY_MODEL; } 119 virtual MemoryModel memory_model() { return HIGH_MEMORY_MODEL; }
120 120
121 virtual SuspendController* suspend_controller() { return NULL; }
122
121 virtual HANDLE shutdown_event() { return shutdown_event_; } 123 virtual HANDLE shutdown_event() { return shutdown_event_; }
122 124
123 private: 125 private:
124 NotificationService notification_service_; 126 NotificationService notification_service_;
125 HANDLE shutdown_event_; 127 HANDLE shutdown_event_;
126 DISALLOW_EVIL_CONSTRUCTORS(TestingBrowserProcess); 128 DISALLOW_EVIL_CONSTRUCTORS(TestingBrowserProcess);
127 }; 129 };
128 130
129 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H__ 131 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H__
130 132
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_main.cc ('k') | chrome/views/container_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698