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

Side by Side Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 407073010: Disable all the tests that are flaking more than 5% on ChromeOS builders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 #include <set> 6 #include <set>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 4247 matching lines...) Expand 10 before | Expand all | Expand 10 after
4258 base::MessageLoop::current()->PostTask(FROM_HERE, 4258 base::MessageLoop::current()->PostTask(FROM_HERE,
4259 base::Bind(&base::MessageLoop::Quit, weak_factory_.GetWeakPtr())); 4259 base::Bind(&base::MessageLoop::Quit, weak_factory_.GetWeakPtr()));
4260 list_ = list; 4260 list_ = list;
4261 } 4261 }
4262 net::CookieList list_; 4262 net::CookieList list_;
4263 bool result_; 4263 bool result_;
4264 base::WeakPtrFactory<base::MessageLoop> weak_factory_; 4264 base::WeakPtrFactory<base::MessageLoop> weak_factory_;
4265 }; 4265 };
4266 4266
4267 // Verifies extension state is removed upon uninstall. 4267 // Verifies extension state is removed upon uninstall.
4268 TEST_F(ExtensionServiceTest, ClearExtensionData) { 4268 #if defined(OS_CHROMEOS)
4269 // http://crbug.com/396504
4270 #define MAYBE_ClearExtensionData DISABLED_ClearExtensionData
4271 #else
4272 #define MAYBE_ClearExtensionData ClearExtensionData
4273 #endif
4274 TEST_F(ExtensionServiceTest, MAYBE_ClearExtensionData) {
4269 InitializeEmptyExtensionService(); 4275 InitializeEmptyExtensionService();
4270 ExtensionCookieCallback callback; 4276 ExtensionCookieCallback callback;
4271 4277
4272 // Load a test extension. 4278 // Load a test extension.
4273 base::FilePath path = data_dir(); 4279 base::FilePath path = data_dir();
4274 path = path.AppendASCII("good.crx"); 4280 path = path.AppendASCII("good.crx");
4275 const Extension* extension = InstallCRX(path, INSTALL_NEW); 4281 const Extension* extension = InstallCRX(path, INSTALL_NEW);
4276 ASSERT_TRUE(extension); 4282 ASSERT_TRUE(extension);
4277 GURL ext_url(extension->url()); 4283 GURL ext_url(extension->url());
4278 std::string origin_id = webkit_database::GetIdentifierFromOrigin(ext_url); 4284 std::string origin_id = webkit_database::GetIdentifierFromOrigin(ext_url);
(...skipping 2740 matching lines...) Expand 10 before | Expand all | Expand 10 after
7019 7025
7020 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED, 7026 service()->Observe(chrome::NOTIFICATION_PROFILE_DESTRUCTION_STARTED,
7021 content::Source<Profile>(profile()), 7027 content::Source<Profile>(profile()),
7022 content::NotificationService::NoDetails()); 7028 content::NotificationService::NoDetails());
7023 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_); 7029 EXPECT_EQ(UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN, unloaded_reason_);
7024 EXPECT_EQ(0u, registry()->enabled_extensions().size()); 7030 EXPECT_EQ(0u, registry()->enabled_extensions().size());
7025 EXPECT_EQ(0u, registry()->disabled_extensions().size()); 7031 EXPECT_EQ(0u, registry()->disabled_extensions().size());
7026 EXPECT_EQ(0u, registry()->terminated_extensions().size()); 7032 EXPECT_EQ(0u, registry()->terminated_extensions().size());
7027 EXPECT_EQ(0u, registry()->blacklisted_extensions().size()); 7033 EXPECT_EQ(0u, registry()->blacklisted_extensions().size());
7028 } 7034 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698