| 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" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/browser/extensions/api/storage/leveldb_settings_storage_factory
.h" | 12 #include "chrome/browser/extensions/api/storage/leveldb_settings_storage_factory
.h" |
| 13 #include "chrome/browser/extensions/api/storage/settings_frontend.h" | 13 #include "chrome/browser/extensions/api/storage/settings_frontend.h" |
| 14 #include "chrome/browser/extensions/api/storage/settings_namespace.h" | |
| 15 #include "chrome/browser/extensions/api/storage/settings_test_util.h" | 14 #include "chrome/browser/extensions/api/storage/settings_test_util.h" |
| 16 #include "chrome/browser/value_store/value_store.h" | 15 #include "chrome/browser/value_store/value_store.h" |
| 17 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
| 17 #include "extensions/browser/api/storage/settings_namespace.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 using content::BrowserThread; | 20 using content::BrowserThread; |
| 21 | 21 |
| 22 namespace extensions { | 22 namespace extensions { |
| 23 | 23 |
| 24 namespace settings = settings_namespace; | 24 namespace settings = settings_namespace; |
| 25 namespace util = settings_test_util; | 25 namespace util = settings_test_util; |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 frontend_->RunWithStorage( | 273 frontend_->RunWithStorage( |
| 274 extension, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); | 274 extension, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); |
| 275 frontend_->RunWithStorage(extension, | 275 frontend_->RunWithStorage(extension, |
| 276 settings::LOCAL, | 276 settings::LOCAL, |
| 277 base::Bind(&UnlimitedLocalStorageTestCallback)); | 277 base::Bind(&UnlimitedLocalStorageTestCallback)); |
| 278 | 278 |
| 279 base::MessageLoop::current()->RunUntilIdle(); | 279 base::MessageLoop::current()->RunUntilIdle(); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace extensions | 282 } // namespace extensions |
| OLD | NEW |