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

Side by Side Diff: chrome/browser/extensions/settings/settings_frontend_unittest.cc

Issue 9315016: Disabling ExtensionSettingsFrontendTest.QuotaLimits*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 storage = GetStorage(id, frontend_.get()); 214 storage = GetStorage(id, frontend_.get());
215 ASSERT_TRUE(storage != NULL); 215 ASSERT_TRUE(storage != NULL);
216 216
217 EXPECT_TRUE(storage->Get().HasError()); 217 EXPECT_TRUE(storage->Get().HasError());
218 EXPECT_TRUE(storage->Clear().HasError()); 218 EXPECT_TRUE(storage->Clear().HasError());
219 EXPECT_TRUE(storage->Set(DEFAULTS, "foo", bar).HasError()); 219 EXPECT_TRUE(storage->Set(DEFAULTS, "foo", bar).HasError());
220 EXPECT_TRUE(storage->Remove("foo").HasError()); 220 EXPECT_TRUE(storage->Remove("foo").HasError());
221 } 221 }
222 222
223 #if defined(OS_WIN)
224 // Failing on vista dbg. http://crbug.com/111100, http://crbug.com/108724
225 #define QuotaLimitsEnforcedCorrectlyForSyncAndLocal \
226 DISABLED_QuotaLimitsEnforcedCorrectlyForSyncAndLocal
227 #endif
223 TEST_F(ExtensionSettingsFrontendTest, 228 TEST_F(ExtensionSettingsFrontendTest,
224 QuotaLimitsEnforcedCorrectlyForSyncAndLocal) { 229 QuotaLimitsEnforcedCorrectlyForSyncAndLocal) {
225 const std::string id = "ext"; 230 const std::string id = "ext";
226 profile_->GetMockExtensionService()->AddExtensionWithId( 231 profile_->GetMockExtensionService()->AddExtensionWithId(
227 id, Extension::TYPE_EXTENSION); 232 id, Extension::TYPE_EXTENSION);
228 233
229 SettingsStorage* sync_storage = GetStorage(id, SYNC, frontend_.get()); 234 SettingsStorage* sync_storage = GetStorage(id, SYNC, frontend_.get());
230 SettingsStorage* local_storage = GetStorage(id, LOCAL, frontend_.get()); 235 SettingsStorage* local_storage = GetStorage(id, LOCAL, frontend_.get());
231 236
232 // Sync storage should run out after ~100K. 237 // Sync storage should run out after ~100K.
233 scoped_ptr<Value> kilobyte = CreateKilobyte(); 238 scoped_ptr<Value> kilobyte = CreateKilobyte();
234 for (int i = 0; i < 100; ++i) { 239 for (int i = 0; i < 100; ++i) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 308
304 frontend_->RunWithStorage( 309 frontend_->RunWithStorage(
305 id, SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); 310 id, SYNC, base::Bind(&UnlimitedSyncStorageTestCallback));
306 frontend_->RunWithStorage( 311 frontend_->RunWithStorage(
307 id, LOCAL, base::Bind(&UnlimitedLocalStorageTestCallback)); 312 id, LOCAL, base::Bind(&UnlimitedLocalStorageTestCallback));
308 313
309 MessageLoop::current()->RunAllPending(); 314 MessageLoop::current()->RunAllPending();
310 } 315 }
311 316
312 } // namespace extensions 317 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698