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

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

Issue 260003: Move the clipboard stuff out of base and into app/clipboard. I renamed... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | net/base/net_util.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) 2009 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 12
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 14
15 #include <string> 15 #include <string>
16 16
17 #include "base/clipboard.h" 17 #include "app/clipboard/clipboard.h"
18 #include "base/string_util.h" 18 #include "base/string_util.h"
19 #include "base/waitable_event.h" 19 #include "base/waitable_event.h"
20 #include "chrome/browser/browser_process.h" 20 #include "chrome/browser/browser_process.h"
21 #include "chrome/common/notification_service.h" 21 #include "chrome/common/notification_service.h"
22 22
23 class TestingBrowserProcess : public BrowserProcess { 23 class TestingBrowserProcess : public BrowserProcess {
24 public: 24 public:
25 TestingBrowserProcess() 25 TestingBrowserProcess()
26 : shutdown_event_(new base::WaitableEvent(true, false)) { 26 : shutdown_event_(new base::WaitableEvent(true, false)) {
27 } 27 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 private: 149 private:
150 NotificationService notification_service_; 150 NotificationService notification_service_;
151 scoped_ptr<base::WaitableEvent> shutdown_event_; 151 scoped_ptr<base::WaitableEvent> shutdown_event_;
152 scoped_ptr<Clipboard> clipboard_; 152 scoped_ptr<Clipboard> clipboard_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 154 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
155 }; 155 };
156 156
157 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 157 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | net/base/net_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698