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

Side by Side Diff: third_party/WebKit/Source/platform/testing/URLTestHelpers.cpp

Issue 2680723002: Generalize ScopedRegisteredURL as ScoedMockedURL* (Closed)
Patch Set: remove one more unused class 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 | « third_party/WebKit/Source/platform/testing/URLTestHelpers.h ('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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "platform/testing/URLTestHelpers.h" 31 #include "platform/testing/URLTestHelpers.h"
32 32
33 #include <string> 33 #include <string>
34 #include "base/files/file_path.h" 34 #include "base/files/file_path.h"
35 #include "base/files/file_util.h" 35 #include "base/files/file_util.h"
36 #include "platform/testing/UnitTestHelpers.h" 36 #include "platform/testing/UnitTestHelpers.h"
37 #include "public/platform/FilePathConversion.h" 37 #include "public/platform/FilePathConversion.h"
38 #include "public/platform/Platform.h" 38 #include "public/platform/Platform.h"
39 #include "public/platform/WebURL.h"
40 #include "public/platform/WebURLError.h" 39 #include "public/platform/WebURLError.h"
41 #include "public/platform/WebURLLoadTiming.h" 40 #include "public/platform/WebURLLoadTiming.h"
42 #include "public/platform/WebURLLoaderMockFactory.h" 41 #include "public/platform/WebURLLoaderMockFactory.h"
43 #include "public/platform/WebURLResponse.h"
44 42
45 namespace blink { 43 namespace blink {
46 namespace URLTestHelpers { 44 namespace URLTestHelpers {
47 45
48 WebURL registerMockedURLLoadFromBase(const WebString& baseURL, 46 WebURL registerMockedURLLoadFromBase(const WebString& baseURL,
49 const WebString& basePath, 47 const WebString& basePath,
50 const WebString& fileName, 48 const WebString& fileName,
51 const WebString& mimeType) { 49 const WebString& mimeType) {
52 // fullURL = baseURL + fileName. 50 // fullURL = baseURL + fileName.
53 std::string fullURL = 51 std::string fullURL =
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 91
94 void registerMockedURLLoadWithCustomResponse(const WebURL& fullURL, 92 void registerMockedURLLoadWithCustomResponse(const WebURL& fullURL,
95 const WebString& filePath, 93 const WebString& filePath,
96 WebURLResponse response) { 94 WebURLResponse response) {
97 Platform::current()->getURLLoaderMockFactory()->registerURL(fullURL, response, 95 Platform::current()->getURLLoaderMockFactory()->registerURL(fullURL, response,
98 filePath); 96 filePath);
99 } 97 }
100 98
101 } // namespace URLTestHelpers 99 } // namespace URLTestHelpers
102 } // namespace blink 100 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/URLTestHelpers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698