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

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

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
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 #include "content/test/test_content_client_initializer.h"
6
7 #include "content/browser/mock_content_browser_client.h"
8 #include "content/browser/notification_service_impl.h"
9 #include "content/public/common/content_client.h"
10 #include "content/test/test_content_client.h"
11
12 namespace content {
13
14 TestContentClientInitializer::TestContentClientInitializer() {
15 notification_service_.reset(new NotificationServiceImpl());
16
17 DCHECK(!content::GetContentClient());
18 content_client_.reset(new TestContentClient);
19 content::SetContentClient(content_client_.get());
20
21 content_browser_client_.reset(new content::MockContentBrowserClient());
22 content_client_->set_browser(content_browser_client_.get());
23 }
24
25 TestContentClientInitializer::~TestContentClientInitializer() {
26 notification_service_.reset();
27
28 DCHECK_EQ(content_client_.get(), content::GetContentClient());
29 content::SetContentClient(NULL);
30 content_client_.reset();
31
32 content_browser_client_.reset();
33 }
34
35 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_content_client_initializer.h ('k') | content/test/test_render_view_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698