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

Side by Side Diff: content/test/test_content_client_initializer.h

Issue 10191010: Re-implement the screensaver to use WebView instead of ExtensionDialogHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ut fix. Created 8 years, 7 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 | « content/test/content_test_suite.cc ('k') | content/test/test_content_client_initializer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_TEST_TEST_CONTENT_CLIENT_INITIALIZER_
6 #define CONTENT_TEST_TEST_CONTENT_CLIENT_INITIALIZER_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h"
11
12 class NotificationServiceImpl;
13
14 namespace content {
15
16 class ContentClient;
17 class ContentBrowserClient;
18
19 // Initializes various objects needed to run unit tests that use content::
20 // objects. Currently this includes setting up the notification service,
21 // creating and setting the content client and the content browser client.
22 class TestContentClientInitializer {
23 public:
24 TestContentClientInitializer();
25 ~TestContentClientInitializer();
26
27 private:
28 scoped_ptr<NotificationServiceImpl> notification_service_;
29 scoped_ptr<content::ContentClient> content_client_;
30 scoped_ptr<content::ContentBrowserClient> content_browser_client_;
31
32 DISALLOW_COPY_AND_ASSIGN(TestContentClientInitializer);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_TEST_TEST_CONTENT_CLIENT_INITIALIZER_
OLDNEW
« no previous file with comments | « content/test/content_test_suite.cc ('k') | content/test/test_content_client_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698