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

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

Issue 15937016: Update refernces to Blink's Platform API (webkit) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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/weburl_loader_mock_factory.h" 5 #include "webkit/support/weburl_loader_mock_factory.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 9 #include "third_party/WebKit/public/platform/WebString.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" 10 #include "third_party/WebKit/public/platform/WebURLError.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" 11 #include "third_party/WebKit/public/platform/WebURLRequest.h"
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" 12 #include "third_party/WebKit/public/platform/WebURLResponse.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
14 #include "webkit/support/webkit_support.h" 14 #include "webkit/support/webkit_support.h"
15 #include "webkit/support/weburl_loader_mock.h" 15 #include "webkit/support/weburl_loader_mock.h"
16 16
17 using WebKit::WebCache; 17 using WebKit::WebCache;
18 using WebKit::WebData; 18 using WebKit::WebData;
19 using WebKit::WebString; 19 using WebKit::WebString;
20 using WebKit::WebURL; 20 using WebKit::WebURL;
21 using WebKit::WebURLError; 21 using WebKit::WebURLError;
22 using WebKit::WebURLLoader; 22 using WebKit::WebURLLoader;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 scoped_ptr<char[]> buffer(new char[size]); 186 scoped_ptr<char[]> buffer(new char[size]);
187 data->reset(); 187 data->reset();
188 int read_count = file_util::ReadFile(file_path, buffer.get(), size); 188 int read_count = file_util::ReadFile(file_path, buffer.get(), size);
189 if (read_count == -1) 189 if (read_count == -1)
190 return false; 190 return false;
191 DCHECK(read_count == size); 191 DCHECK(read_count == size);
192 data->assign(buffer.get(), size); 192 data->assign(buffer.get(), size);
193 193
194 return true; 194 return true;
195 } 195 }
OLDNEW
« no previous file with comments | « webkit/support/weburl_loader_mock_factory.h ('k') | webkit/tools/test_shell/mock_webclipboard_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698