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

Side by Side Diff: content/public/test/mock_render_thread.cc

Issue 1821413003: Remove logic for lazy initialization of WebKit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 4 years, 9 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
OLDNEW
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/mock_render_thread.h" 5 #include "content/public/test/mock_render_thread.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 117
118 void MockRenderThread::RemoveObserver(RenderProcessObserver* observer) { 118 void MockRenderThread::RemoveObserver(RenderProcessObserver* observer) {
119 observers_.RemoveObserver(observer); 119 observers_.RemoveObserver(observer);
120 } 120 }
121 121
122 void MockRenderThread::SetResourceDispatcherDelegate( 122 void MockRenderThread::SetResourceDispatcherDelegate(
123 ResourceDispatcherDelegate* delegate) { 123 ResourceDispatcherDelegate* delegate) {
124 } 124 }
125 125
126 void MockRenderThread::EnsureWebKitInitialized() {
127 }
128
129 void MockRenderThread::RecordAction(const base::UserMetricsAction& action) { 126 void MockRenderThread::RecordAction(const base::UserMetricsAction& action) {
130 } 127 }
131 128
132 void MockRenderThread::RecordComputedAction(const std::string& action) { 129 void MockRenderThread::RecordComputedAction(const std::string& action) {
133 } 130 }
134 131
135 scoped_ptr<base::SharedMemory> 132 scoped_ptr<base::SharedMemory>
136 MockRenderThread::HostAllocateSharedMemoryBuffer( 133 MockRenderThread::HostAllocateSharedMemoryBuffer(
137 size_t buffer_size) { 134 size_t buffer_size) {
138 scoped_ptr<base::SharedMemory> shared_buf(new base::SharedMemory); 135 scoped_ptr<base::SharedMemory> shared_buf(new base::SharedMemory);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 void MockRenderThread::OnDuplicateSection( 248 void MockRenderThread::OnDuplicateSection(
252 base::SharedMemoryHandle renderer_handle, 249 base::SharedMemoryHandle renderer_handle,
253 base::SharedMemoryHandle* browser_handle) { 250 base::SharedMemoryHandle* browser_handle) {
254 // We don't have to duplicate the input handles since RenderViewTest does not 251 // We don't have to duplicate the input handles since RenderViewTest does not
255 // separate a browser process from a renderer process. 252 // separate a browser process from a renderer process.
256 *browser_handle = renderer_handle; 253 *browser_handle = renderer_handle;
257 } 254 }
258 #endif // defined(OS_WIN) 255 #endif // defined(OS_WIN)
259 256
260 } // namespace content 257 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698