| Index: chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc b/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
|
| index 5ba5da999320eff17c052e0401baaa26e76b24a1..8caf1c590068414f289f961d54132859b872f9a6 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
|
| @@ -9,6 +9,7 @@
|
| #include <algorithm>
|
|
|
| #include "base/bind.h"
|
| +#include "base/command_line.h"
|
| #include "base/files/file_path.h"
|
| #include "base/files/scoped_temp_dir.h"
|
| #include "base/memory/ref_counted.h"
|
| @@ -35,6 +36,7 @@
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/tabs/tab_strip_model.h"
|
| #include "chrome/common/chrome_paths.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/test/base/in_process_browser_test.h"
|
| #include "chrome/test/base/ui_test_utils.h"
|
| @@ -44,6 +46,10 @@
|
| #include "sql/statement.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +#include "chromeos/chromeos_switches.h"
|
| +#endif
|
| +
|
| using content::BrowserThread;
|
| using content::InterstitialPage;
|
| using content::WebContents;
|
| @@ -394,6 +400,17 @@ class SafeBrowsingServiceTest : public InProcessBrowserTest {
|
| SafeBrowsingService::RegisterFactory(NULL);
|
| }
|
|
|
| + virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
|
| + // Makes sure the auto update is not triggered during the test.
|
| + // This test will fill up the database using testing prefixes
|
| + // and urls.
|
| + command_line->AppendSwitch(switches::kSbDisableAutoUpdate);
|
| +#if defined(OS_CHROMEOS)
|
| + command_line->AppendSwitch(
|
| + chromeos::switches::kIgnoreUserProfileMappingForTests);
|
| +#endif
|
| + }
|
| +
|
| virtual void SetUpInProcessBrowserTestFixture() {
|
| ASSERT_TRUE(test_server()->Start());
|
| }
|
|
|