| 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 "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "content/browser/notification_service_impl.h" | 8 #include "content/browser/notification_service_impl.h" |
| 9 #include "content/public/common/content_client.h" | 9 #include "content/public/common/content_client.h" |
| 10 #include "content/public/test/mock_render_process_host.h" | 10 #include "content/public/test/mock_render_process_host.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 rph_factory_.reset(); | 29 rph_factory_.reset(); |
| 30 notification_service_.reset(); | 30 notification_service_.reset(); |
| 31 | 31 |
| 32 SetContentClient(NULL); | 32 SetContentClient(NULL); |
| 33 content_client_.reset(); | 33 content_client_.reset(); |
| 34 | 34 |
| 35 content_browser_client_.reset(); | 35 content_browser_client_.reset(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 void TestContentClientInitializer::CreateTestRenderViewHosts() { | 38 void TestContentClientInitializer::CreateTestRenderViewHosts() { |
| 39 #if !defined(OS_IOS) | |
| 40 rph_factory_.reset(new MockRenderProcessHostFactory()); | 39 rph_factory_.reset(new MockRenderProcessHostFactory()); |
| 41 test_render_view_host_factory_.reset( | 40 test_render_view_host_factory_.reset( |
| 42 new TestRenderViewHostFactory(rph_factory_.get())); | 41 new TestRenderViewHostFactory(rph_factory_.get())); |
| 43 #endif // OS_IOS | |
| 44 } | 42 } |
| 45 | 43 |
| 46 } // namespace content | 44 } // namespace content |
| OLD | NEW |