| OLD | NEW |
| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } | 177 } |
| 178 | 178 |
| 179 frontend_.reset(); | 179 frontend_.reset(); |
| 180 base::MessageLoop::current()->RunUntilIdle(); | 180 base::MessageLoop::current()->RunUntilIdle(); |
| 181 // TODO(kalman): Figure out why this fails, despite appearing to work. | 181 // TODO(kalman): Figure out why this fails, despite appearing to work. |
| 182 // Leaving this commented out rather than disabling the whole test so that the | 182 // Leaving this commented out rather than disabling the whole test so that the |
| 183 // deletion code paths are at least exercised. | 183 // deletion code paths are at least exercised. |
| 184 //EXPECT_FALSE(base::PathExists(temp_dir_.path())); | 184 //EXPECT_FALSE(base::PathExists(temp_dir_.path())); |
| 185 } | 185 } |
| 186 | 186 |
| 187 // Disabled (slow), http://crbug.com/322751 . |
| 187 TEST_F(ExtensionSettingsFrontendTest, | 188 TEST_F(ExtensionSettingsFrontendTest, |
| 188 QuotaLimitsEnforcedCorrectlyForSyncAndLocal) { | 189 DISABLED_QuotaLimitsEnforcedCorrectlyForSyncAndLocal) { |
| 189 const std::string id = "ext"; | 190 const std::string id = "ext"; |
| 190 ExtensionServiceInterface* esi = | 191 ExtensionServiceInterface* esi = |
| 191 extensions::ExtensionSystem::Get(profile_.get())->extension_service(); | 192 extensions::ExtensionSystem::Get(profile_.get())->extension_service(); |
| 192 static_cast<extensions::settings_test_util::MockExtensionService*>(esi)-> | 193 static_cast<extensions::settings_test_util::MockExtensionService*>(esi)-> |
| 193 AddExtensionWithId(id, Manifest::TYPE_EXTENSION); | 194 AddExtensionWithId(id, Manifest::TYPE_EXTENSION); |
| 194 | 195 |
| 195 ValueStore* sync_storage = | 196 ValueStore* sync_storage = |
| 196 util::GetStorage(id, settings::SYNC, frontend_.get()); | 197 util::GetStorage(id, settings::SYNC, frontend_.get()); |
| 197 ValueStore* local_storage = | 198 ValueStore* local_storage = |
| 198 util::GetStorage(id, settings::LOCAL, frontend_.get()); | 199 util::GetStorage(id, settings::LOCAL, frontend_.get()); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 280 |
| 280 frontend_->RunWithStorage( | 281 frontend_->RunWithStorage( |
| 281 id, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); | 282 id, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); |
| 282 frontend_->RunWithStorage( | 283 frontend_->RunWithStorage( |
| 283 id, settings::LOCAL, base::Bind(&UnlimitedLocalStorageTestCallback)); | 284 id, settings::LOCAL, base::Bind(&UnlimitedLocalStorageTestCallback)); |
| 284 | 285 |
| 285 base::MessageLoop::current()->RunUntilIdle(); | 286 base::MessageLoop::current()->RunUntilIdle(); |
| 286 } | 287 } |
| 287 | 288 |
| 288 } // namespace extensions | 289 } // namespace extensions |
| OLD | NEW |