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

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

Issue 2695333002: Mojo C++ bindings: remove usage of AssociatedGroup from content/ (Closed)
Patch Set: . Created 3 years, 10 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
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 blink::WebIDBFactory* TestBlinkWebUnitTestSupport::idbFactory() { 190 blink::WebIDBFactory* TestBlinkWebUnitTestSupport::idbFactory() {
191 NOTREACHED() << 191 NOTREACHED() <<
192 "IndexedDB cannot be tested with in-process harnesses."; 192 "IndexedDB cannot be tested with in-process harnesses.";
193 return NULL; 193 return NULL;
194 } 194 }
195 195
196 blink::WebURLLoader* TestBlinkWebUnitTestSupport::createURLLoader() { 196 blink::WebURLLoader* TestBlinkWebUnitTestSupport::createURLLoader() {
197 // This loader should be used only for process-local resources such as 197 // This loader should be used only for process-local resources such as
198 // data URLs. 198 // data URLs.
199 blink::WebURLLoader* default_loader = 199 blink::WebURLLoader* default_loader = new WebURLLoaderImpl(nullptr, nullptr);
200 new WebURLLoaderImpl(nullptr, nullptr, nullptr);
201 return url_loader_factory_->createURLLoader(default_loader); 200 return url_loader_factory_->createURLLoader(default_loader);
202 } 201 }
203 202
204 blink::WebString TestBlinkWebUnitTestSupport::userAgent() { 203 blink::WebString TestBlinkWebUnitTestSupport::userAgent() {
205 return blink::WebString::fromUTF8("test_runner/0.0.0.0"); 204 return blink::WebString::fromUTF8("test_runner/0.0.0.0");
206 } 205 }
207 206
208 std::unique_ptr<cc::SharedBitmap> 207 std::unique_ptr<cc::SharedBitmap>
209 TestBlinkWebUnitTestSupport::allocateSharedBitmap( 208 TestBlinkWebUnitTestSupport::allocateSharedBitmap(
210 const blink::WebSize& size) { 209 const blink::WebSize& size) {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 blink::WebRTCCertificateGenerator* 348 blink::WebRTCCertificateGenerator*
350 TestBlinkWebUnitTestSupport::createRTCCertificateGenerator() { 349 TestBlinkWebUnitTestSupport::createRTCCertificateGenerator() {
351 #if BUILDFLAG(ENABLE_WEBRTC) 350 #if BUILDFLAG(ENABLE_WEBRTC)
352 return new TestWebRTCCertificateGenerator(); 351 return new TestWebRTCCertificateGenerator();
353 #else 352 #else
354 return nullptr; 353 return nullptr;
355 #endif 354 #endif
356 } 355 }
357 356
358 } // namespace content 357 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698