Chromium Code Reviews

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

Issue 40226: Fix files with lines > 80 cols. Part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/test/selenium/selenium_test.cc ('k') | chrome/test/ui/layout_plugin_uitest.cpp » ('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 104 matching lines...)
115 115
116 virtual const std::wstring& GetApplicationLocale() { 116 virtual const std::wstring& GetApplicationLocale() {
117 static std::wstring* value = NULL; 117 static std::wstring* value = NULL;
118 if (!value) 118 if (!value)
119 value = new std::wstring(L"en"); 119 value = new std::wstring(L"en");
120 return *value; 120 return *value;
121 } 121 }
122 122
123 virtual MemoryModel memory_model() { return HIGH_MEMORY_MODEL; } 123 virtual MemoryModel memory_model() { return HIGH_MEMORY_MODEL; }
124 124
125 virtual base::WaitableEvent* shutdown_event() { return shutdown_event_.get(); } 125 virtual base::WaitableEvent* shutdown_event() {
126 return shutdown_event_.get();
127 }
126 128
127 private: 129 private:
128 NotificationService notification_service_; 130 NotificationService notification_service_;
129 scoped_ptr<base::WaitableEvent> shutdown_event_; 131 scoped_ptr<base::WaitableEvent> shutdown_event_;
130 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 132 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
131 }; 133 };
132 134
133 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 135 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/test/selenium/selenium_test.cc ('k') | chrome/test/ui/layout_plugin_uitest.cpp » ('j') | no next file with comments »

Powered by Google App Engine