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

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

Issue 126223: Replace std:;wstring with std::string in locale-name related APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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) 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 virtual views::AcceleratorHandler* accelerator_handler() { 126 virtual views::AcceleratorHandler* accelerator_handler() {
127 return NULL; 127 return NULL;
128 } 128 }
129 129
130 virtual printing::PrintJobManager* print_job_manager() { 130 virtual printing::PrintJobManager* print_job_manager() {
131 return NULL; 131 return NULL;
132 } 132 }
133 133
134 virtual const std::wstring& GetApplicationLocale() { 134 virtual const std::string& GetApplicationLocale() {
135 static std::wstring* value = NULL; 135 static std::string* value = NULL;
136 if (!value) 136 if (!value)
137 value = new std::wstring(L"en"); 137 value = new std::string("en");
138 return *value; 138 return *value;
139 } 139 }
140 140
141 virtual MemoryModel memory_model() { return HIGH_MEMORY_MODEL; } 141 virtual MemoryModel memory_model() { return HIGH_MEMORY_MODEL; }
142 142
143 virtual base::WaitableEvent* shutdown_event() { 143 virtual base::WaitableEvent* shutdown_event() {
144 return shutdown_event_.get(); 144 return shutdown_event_.get();
145 } 145 }
146 146
147 private: 147 private:
148 NotificationService notification_service_; 148 NotificationService notification_service_;
149 scoped_ptr<base::WaitableEvent> shutdown_event_; 149 scoped_ptr<base::WaitableEvent> shutdown_event_;
150 scoped_ptr<Clipboard> clipboard_; 150 scoped_ptr<Clipboard> clipboard_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 152 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
153 }; 153 };
154 154
155 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 155 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/test/automated_ui_tests/automated_ui_tests.cc ('k') | chrome/test/unit/chrome_test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698