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

Unified Diff: components/translate/core/browser/translate_download_manager.h

Issue 186063007: Move TranslateManager unit tests out of the browser_tests target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: translatetests: Fix test clobbering Created 6 years, 9 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: components/translate/core/browser/translate_download_manager.h
diff --git a/components/translate/core/browser/translate_download_manager.h b/components/translate/core/browser/translate_download_manager.h
index 4766b652e575bf617c56f4828db55d8e2efc8e5e..ed8e04b1c42d74b7fba3d22c645df0429b7babc9 100644
--- a/components/translate/core/browser/translate_download_manager.h
+++ b/components/translate/core/browser/translate_download_manager.h
@@ -78,6 +78,9 @@ class TranslateDownloadManager {
// Clears the translate script, so it will be fetched next time we translate.
void ClearTranslateScriptForTesting();
+ // Resets to its initial state as if newly created.
+ void ResetForTesting();
+
// Used by unit-tests to override some defaults:
// Delay after which the translate script is fetched again from the
// translation server.

Powered by Google App Engine
This is Rietveld 408576698