OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "content/public/test/test_content_client_initializer.h" | 5 #include "content/public/test/test_content_client_initializer.h" |
6 | 6 |
7 #include "content/browser/notification_service_impl.h" | 7 #include "content/browser/notification_service_impl.h" |
8 #include "content/public/common/content_client.h" | 8 #include "content/public/common/content_client.h" |
9 #include "content/public/test/mock_render_process_host.h" | 9 #include "content/public/test/mock_render_process_host.h" |
10 #include "content/test/test_content_browser_client.h" | 10 #include "content/test/test_content_browser_client.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 DCHECK_EQ(content_client_.get(), GetContentClient()); | 32 DCHECK_EQ(content_client_.get(), GetContentClient()); |
33 SetContentClient(NULL); | 33 SetContentClient(NULL); |
34 content_client_.reset(); | 34 content_client_.reset(); |
35 | 35 |
36 content_browser_client_.reset(); | 36 content_browser_client_.reset(); |
37 } | 37 } |
38 | 38 |
39 void TestContentClientInitializer::CreateTestRenderViewHosts() { | 39 void TestContentClientInitializer::CreateTestRenderViewHosts() { |
40 #if !defined(OS_IOS) | 40 #if !defined(OS_IOS) |
41 rph_factory_.reset(new content::MockRenderProcessHostFactory()); | 41 rph_factory_.reset(new MockRenderProcessHostFactory()); |
42 test_render_view_host_factory_.reset( | 42 test_render_view_host_factory_.reset( |
43 new content::TestRenderViewHostFactory(rph_factory_.get())); | 43 new TestRenderViewHostFactory(rph_factory_.get())); |
44 #endif // OS_IOS | 44 #endif // OS_IOS |
45 } | 45 } |
46 | 46 |
47 } // namespace content | 47 } // namespace content |
OLD | NEW |