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

Unified Diff: content/common/net/url_fetcher.h

Issue 8082019: more content exports needed for unit_tests and browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert export of browser_accessibility_win for now Created 9 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 side-by-side diff with in-line comments
Download patch
Index: content/common/net/url_fetcher.h
diff --git a/content/common/net/url_fetcher.h b/content/common/net/url_fetcher.h
index 74bbf7b718b00566eb67229cd4fe6161e010195f..ba2b46569cb4b392767f692e6856285a7088a7c5 100644
--- a/content/common/net/url_fetcher.h
+++ b/content/common/net/url_fetcher.h
@@ -187,11 +187,9 @@ class CONTENT_EXPORT URLFetcher {
base::TimeDelta backoff_delay() const { return backoff_delay_; }
// Sets the back-off delay, allowing to mock 5xx requests in unit-tests.
-#if defined(UNIT_TEST)
- void set_backoff_delay(base::TimeDelta backoff_delay) {
+ void set_backoff_delay_for_testing(base::TimeDelta backoff_delay) {
backoff_delay_ = backoff_delay;
}
-#endif // defined(UNIT_TEST)
// By default, the response is saved in a string. Call this method to save the
// response to a temporary file instead. Must be called before Start().

Powered by Google App Engine
This is Rietveld 408576698