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

Side by Side Diff: webkit/support/test_webkit_platform_support.cc

Issue 22815034: Introduce webkit_glue bridges for the new WebSocket Implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 "webkit/support/test_webkit_platform_support.h" 5 #include "webkit/support/test_webkit_platform_support.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 228 }
229 229
230 webkit_glue::ResourceLoaderBridge* 230 webkit_glue::ResourceLoaderBridge*
231 TestWebKitPlatformSupport::CreateResourceLoader( 231 TestWebKitPlatformSupport::CreateResourceLoader(
232 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 232 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
233 NOTREACHED(); 233 NOTREACHED();
234 return NULL; 234 return NULL;
235 } 235 }
236 236
237 webkit_glue::WebSocketStreamHandleBridge* 237 webkit_glue::WebSocketStreamHandleBridge*
238 TestWebKitPlatformSupport::CreateWebSocketBridge( 238 TestWebKitPlatformSupport::CreateWebSocketStreamBridge(
239 WebKit::WebSocketStreamHandle* handle, 239 WebKit::WebSocketStreamHandle* handle,
240 webkit_glue::WebSocketStreamHandleDelegate* delegate) { 240 webkit_glue::WebSocketStreamHandleDelegate* delegate) {
241 NOTREACHED(); 241 NOTREACHED();
242 return NULL; 242 return NULL;
243 } 243 }
244 244
245 webkit_glue::WebSocketHandleBridge*
246 TestWebKitPlatformSupport::CreateWebSocketBridge(
247 webkit_glue::WebSocketHandleDelegate* delegate) {
248 NOTREACHED();
249 return NULL;
250 }
251
245 WebKit::WebGestureCurve* TestWebKitPlatformSupport::createFlingAnimationCurve( 252 WebKit::WebGestureCurve* TestWebKitPlatformSupport::createFlingAnimationCurve(
246 int device_source, 253 int device_source,
247 const WebKit::WebFloatPoint& velocity, 254 const WebKit::WebFloatPoint& velocity,
248 const WebKit::WebSize& cumulative_scroll) { 255 const WebKit::WebSize& cumulative_scroll) {
249 // Caller will retain and release. 256 // Caller will retain and release.
250 return new WebGestureCurveMock(velocity, cumulative_scroll); 257 return new WebGestureCurveMock(velocity, cumulative_scroll);
251 } 258 }
252 259
253 WebKit::WebUnitTestSupport* TestWebKitPlatformSupport::unitTestSupport() { 260 WebKit::WebUnitTestSupport* TestWebKitPlatformSupport::unitTestSupport() {
254 return this; 261 return this;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 318
312 WebKit::WebData TestWebKitPlatformSupport::readFromFile( 319 WebKit::WebData TestWebKitPlatformSupport::readFromFile(
313 const WebKit::WebString& path) { 320 const WebKit::WebString& path) {
314 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path); 321 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path);
315 322
316 std::string buffer; 323 std::string buffer;
317 file_util::ReadFileToString(file_path, &buffer); 324 file_util::ReadFileToString(file_path, &buffer);
318 325
319 return WebKit::WebData(buffer.data(), buffer.size()); 326 return WebKit::WebData(buffer.data(), buffer.size());
320 } 327 }
OLDNEW
« content/child/websocket_dispatcher.h ('K') | « webkit/support/test_webkit_platform_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698