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

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

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: comment 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
« no previous file with comments | « components/translate/core/browser/translate_download_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_download_manager.cc
diff --git a/components/translate/core/browser/translate_download_manager.cc b/components/translate/core/browser/translate_download_manager.cc
index 63e85a0754af2f3c30198b4610a04ee01350bc15..6b33ec032024d22fa7961f90b2814e33be19f302 100644
--- a/components/translate/core/browser/translate_download_manager.cc
+++ b/components/translate/core/browser/translate_download_manager.cc
@@ -118,6 +118,11 @@ void TranslateDownloadManager::ClearTranslateScriptForTesting() {
script_->Clear();
}
+void TranslateDownloadManager::ResetForTesting() {
+ language_list_.reset(new TranslateLanguageList);
+ script_.reset(new TranslateScript);
+}
+
void TranslateDownloadManager::SetTranslateScriptExpirationDelay(int delay_ms) {
if (script_.get() == NULL) {
NOTREACHED();
« no previous file with comments | « components/translate/core/browser/translate_download_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698