| 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 "testing/gtest/include/gtest/gtest.h" | |
| 6 | |
| 7 #include "base/bind.h" | 5 #include "base/bind.h" |
| 8 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 12 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| 13 #include "chrome/browser/extensions/settings/leveldb_settings_storage_factory.h" | 11 #include "chrome/browser/extensions/api/storage/leveldb_settings_storage_factory
.h" |
| 14 #include "chrome/browser/extensions/settings/settings_frontend.h" | 12 #include "chrome/browser/extensions/api/storage/settings_frontend.h" |
| 15 #include "chrome/browser/extensions/settings/settings_namespace.h" | 13 #include "chrome/browser/extensions/api/storage/settings_namespace.h" |
| 16 #include "chrome/browser/extensions/settings/settings_test_util.h" | 14 #include "chrome/browser/extensions/api/storage/settings_test_util.h" |
| 17 #include "chrome/browser/value_store/value_store.h" | 15 #include "chrome/browser/value_store/value_store.h" |
| 18 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
| 19 #include "content/public/test/test_browser_thread.h" | 17 #include "content/public/test/test_browser_thread.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 19 |
| 21 using content::BrowserThread; | 20 using content::BrowserThread; |
| 22 | 21 |
| 23 namespace extensions { | 22 namespace extensions { |
| 24 | 23 |
| 25 namespace settings = settings_namespace; | 24 namespace settings = settings_namespace; |
| 26 namespace util = settings_test_util; | 25 namespace util = settings_test_util; |
| 27 | 26 |
| 28 namespace { | 27 namespace { |
| 29 | 28 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 279 |
| 281 frontend_->RunWithStorage( | 280 frontend_->RunWithStorage( |
| 282 id, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); | 281 id, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); |
| 283 frontend_->RunWithStorage( | 282 frontend_->RunWithStorage( |
| 284 id, settings::LOCAL, base::Bind(&UnlimitedLocalStorageTestCallback)); | 283 id, settings::LOCAL, base::Bind(&UnlimitedLocalStorageTestCallback)); |
| 285 | 284 |
| 286 MessageLoop::current()->RunUntilIdle(); | 285 MessageLoop::current()->RunUntilIdle(); |
| 287 } | 286 } |
| 288 | 287 |
| 289 } // namespace extensions | 288 } // namespace extensions |
| OLD | NEW |