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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some (incomplete) work on struct traits. Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/test_blink_web_unit_test_support.h" 5 #include "content/test/test_blink_web_unit_test_support.h"
6 6
7 #include "base/feature_list.h" 7 #include "base/feature_list.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 blink::WebClipboard* TestBlinkWebUnitTestSupport::clipboard() { 169 blink::WebClipboard* TestBlinkWebUnitTestSupport::clipboard() {
170 // Mock out clipboard calls so that tests don't mess 170 // Mock out clipboard calls so that tests don't mess
171 // with each other's copies/pastes when running in parallel. 171 // with each other's copies/pastes when running in parallel.
172 return mock_clipboard_.get(); 172 return mock_clipboard_.get();
173 } 173 }
174 174
175 blink::WebFileUtilities* TestBlinkWebUnitTestSupport::fileUtilities() { 175 blink::WebFileUtilities* TestBlinkWebUnitTestSupport::fileUtilities() {
176 return &file_utilities_; 176 return &file_utilities_;
177 } 177 }
178 178
179 blink::WebIDBFactory* TestBlinkWebUnitTestSupport::idbFactory() {
180 NOTREACHED() <<
181 "IndexedDB cannot be tested with in-process harnesses.";
182 return NULL;
183 }
184
185 blink::WebMimeRegistry* TestBlinkWebUnitTestSupport::mimeRegistry() { 179 blink::WebMimeRegistry* TestBlinkWebUnitTestSupport::mimeRegistry() {
186 return &mime_registry_; 180 return &mime_registry_;
187 } 181 }
188 182
189 blink::WebURLLoader* TestBlinkWebUnitTestSupport::createURLLoader() { 183 blink::WebURLLoader* TestBlinkWebUnitTestSupport::createURLLoader() {
190 blink::WebThread* currentThread = Platform::current()->currentThread(); 184 blink::WebThread* currentThread = Platform::current()->currentThread();
191 // This loader should be used only for process-local resources such as 185 // This loader should be used only for process-local resources such as
192 // data URLs. 186 // data URLs.
193 blink::WebURLLoader* default_loader = new WebURLLoaderImpl( 187 blink::WebURLLoader* default_loader = new WebURLLoaderImpl(
194 nullptr, base::WrapUnique(currentThread->getWebTaskRunner()->clone())); 188 nullptr, base::WrapUnique(currentThread->getWebTaskRunner()->clone()));
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 return BlinkPlatformImpl::currentThread(); 285 return BlinkPlatformImpl::currentThread();
292 } 286 }
293 287
294 void TestBlinkWebUnitTestSupport::getPluginList( 288 void TestBlinkWebUnitTestSupport::getPluginList(
295 bool refresh, blink::WebPluginListBuilder* builder) { 289 bool refresh, blink::WebPluginListBuilder* builder) {
296 builder->addPlugin("pdf", "pdf", "pdf-files"); 290 builder->addPlugin("pdf", "pdf", "pdf-files");
297 builder->addMediaTypeToLastPlugin("application/pdf", "pdf"); 291 builder->addMediaTypeToLastPlugin("application/pdf", "pdf");
298 } 292 }
299 293
300 } // namespace content 294 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698