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

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

Issue 2385283002: reflow comments in platform/{testing,text} (Closed)
Patch Set: idunnolol Created 4 years, 2 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 /* 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 error.reason = 404; 86 error.reason = 404;
87 Platform::current()->getURLLoaderMockFactory()->registerErrorURL( 87 Platform::current()->getURLLoaderMockFactory()->registerErrorURL(
88 fullURL, response, error); 88 fullURL, response, error);
89 } 89 }
90 90
91 void registerMockedURLLoadWithCustomResponse( 91 void registerMockedURLLoadWithCustomResponse(
92 const WebURL& fullURL, 92 const WebURL& fullURL,
93 const WebString& fileName, 93 const WebString& fileName,
94 const WebString& relativeBaseDirectory, 94 const WebString& relativeBaseDirectory,
95 WebURLResponse response) { 95 WebURLResponse response) {
96 // Physical file path for the mock = <webkitRootDir> + relativeBaseDirectory + fileName. 96 // Physical file path for the mock =
97 // <webkitRootDir> + relativeBaseDirectory + fileName.
97 String filePath = testing::blinkRootDir(); 98 String filePath = testing::blinkRootDir();
98 filePath.append("/Source/web/tests/data/"); 99 filePath.append("/Source/web/tests/data/");
99 filePath.append(relativeBaseDirectory); 100 filePath.append(relativeBaseDirectory);
100 filePath.append(fileName); 101 filePath.append(fileName);
101 102
102 Platform::current()->getURLLoaderMockFactory()->registerURL(fullURL, response, 103 Platform::current()->getURLLoaderMockFactory()->registerURL(fullURL, response,
103 filePath); 104 filePath);
104 } 105 }
105 106
106 } // namespace URLTestHelpers 107 } // namespace URLTestHelpers
107 } // namespace blink 108 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698