Index: chrome/browser/translate/translate_browser_test_utils.h |
diff --git a/chrome/browser/translate/translate_browser_test_utils.h b/chrome/browser/translate/translate_browser_test_utils.h |
index d5e054b6838f4b33529fe9e2985eb8530fe32060..c8ad85a5d4d1c2de0f501ede5ad9681480a30aa3 100644 |
--- a/chrome/browser/translate/translate_browser_test_utils.h |
+++ b/chrome/browser/translate/translate_browser_test_utils.h |
@@ -11,13 +11,12 @@ namespace test { |
// A utility class that sets up CLD dynamic data upon calling Init() and cleans |
// it up when destroyed. |
+// Test data lives under: src/chrome/test/data/cld2_component |
// |
// This class is intended to be instantiated within IN_PROC_BROWSER_TEST_F |
// test fixtures; it uses ASSERT macros for correctness, so that tests will |
// fail gracefully in error conditions. Sample use: |
// |
-// #include "chrome/browser/translate/translate_browser_test_utils.h" |
-// |
// IN_PROC_BROWSER_TEST_F(BrowserTest, PageLanguageDetection) { |
// test::ScopedCLDDynamicDataHarness dynamic_data_scope; |
// ASSERT_NO_FATAL_FAILURE(dynamic_data_scope.Init()); |
@@ -26,9 +25,19 @@ namespace test { |
// |
// If you have a lot of tests that need language translation features, you can |
// add an instance of the ScopedCLDDynamicDataHarness to your test class' |
-// private member variables and add the call to Init() into your Setup method. |
+// private member variables and add the call to Init() into SetUpOnMainThread. |
+// Sample use: |
+// |
+// class MyTestClass : public InProcessBrowserTest { |
+// public: |
+// virtual void SetUpOnMainThread() OVERRIDE { |
+// dynamic_data_scope.Init(); |
+// InProcessBrowserTest::SetUpOnMainThread(); |
+// } |
+// private: |
+// test::ScopedCLDDynamicDataHarness dynamic_data_scope; |
+// }; |
// |
-// NB: Test data lives under src/chrome/test/data/cld2_component |
class ScopedCLDDynamicDataHarness { |
public: |
// Constructs the object, but does nothing. Call Init() to prepare the |