diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-03 20:31:20 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-03 20:31:20 +0000 |
commit | eab3d03ab834b1f0588cc06060bbfc5914b358cb (patch) | |
tree | 207830f0da0cb19f8b08959b0697df8c9e529f58 /chrome/browser/extensions/extension_toolbar_model_browsertest.cc | |
parent | 0e3f2d23e87124f1341e88d822c9f5551506642b (diff) | |
download | chromium_src-eab3d03ab834b1f0588cc06060bbfc5914b358cb.zip chromium_src-eab3d03ab834b1f0588cc06060bbfc5914b358cb.tar.gz chromium_src-eab3d03ab834b1f0588cc06060bbfc5914b358cb.tar.bz2 |
Temporarily re-enabling SizeAfterPrefChange test with traces.
BUG=379170
TBR=asargent
Review URL: https://codereview.chromium.org/318483002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_toolbar_model_browsertest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_toolbar_model_browsertest.cc | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/chrome/browser/extensions/extension_toolbar_model_browsertest.cc b/chrome/browser/extensions/extension_toolbar_model_browsertest.cc index 7caba8d..43fc6a7 100644 --- a/chrome/browser/extensions/extension_toolbar_model_browsertest.cc +++ b/chrome/browser/extensions/extension_toolbar_model_browsertest.cc @@ -27,6 +27,12 @@ class ExtensionToolbarModelTest : public ExtensionBrowserTest, ExtensionBrowserTest::SetUp(); } + virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { + ExtensionBrowserTest::SetUpCommandLine(command_line); + command_line->AppendSwitchNative( + "vmodule", "*extension_toolbar_model*=4,*browser_actions_container*=4"); + } + virtual void SetUpOnMainThread() OVERRIDE { model_ = ExtensionToolbarModel::Get(browser()->profile()); model_->AddObserver(this); @@ -584,36 +590,32 @@ IN_PROC_BROWSER_TEST_F(ExtensionToolbarModelTest, HighlightModeAdd) { EXPECT_EQ(id_c, ExtensionAt(2)->id()); } -// Test is flaky on Linus and ChromeOS, see crbug.com/379170. -#if defined(OS_LINUX) || defined(OS_CHROMEOS) -#define MAYBE_SizeAfterPrefChange DISABLED_SizeAfterPrefChange -#else -#define MAYBE_SizeAfterPrefChange SizeAfterPrefChange -#endif -IN_PROC_BROWSER_TEST_F(ExtensionToolbarModelTest, MAYBE_SizeAfterPrefChange) { +// Test is flaky (see crbug.com/379170), but currently enabled to gather traces. +// If it fails, ping Finnur. +IN_PROC_BROWSER_TEST_F(ExtensionToolbarModelTest, SizeAfterPrefChange) { // Load two extensions with browser action. base::FilePath extension_a_path(test_data_dir_.AppendASCII("api_test") .AppendASCII("browser_action") .AppendASCII("basics")); - LOG(ERROR) << "Loading [basics]"; + VLOG(4) << "Loading [basics]"; ASSERT_TRUE(LoadExtension(extension_a_path)); base::FilePath extension_b_path(test_data_dir_.AppendASCII("api_test") .AppendASCII("browser_action") .AppendASCII("popup")); - LOG(ERROR) << "Loading [popup]"; + VLOG(4) << "Loading [popup]"; ASSERT_TRUE(LoadExtension(extension_b_path)); std::string id_a = ExtensionAt(0)->id(); std::string id_b = ExtensionAt(1)->id(); - LOG(ERROR) << "GetVisibleIconCount"; + VLOG(4) << "GetVisibleIconCount"; // Should be at max size (-1). EXPECT_EQ(-1, model_->GetVisibleIconCount()); - LOG(ERROR) << "OnExtensionToolbarPrefChange"; + VLOG(4) << "OnExtensionToolbarPrefChange"; model_->OnExtensionToolbarPrefChange(); - LOG(ERROR) << "GetVisibleIconCount"; + VLOG(4) << "GetVisibleIconCount"; // Should still be at max size. EXPECT_EQ(-1, model_->GetVisibleIconCount()); |