| 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" | |
| 12 #include "chrome/browser/extensions/api/storage/leveldb_settings_storage_factory
.h" | |
| 13 #include "chrome/browser/extensions/api/storage/settings_frontend.h" | |
| 14 #include "chrome/browser/extensions/api/storage/settings_test_util.h" | |
| 15 #include "content/public/test/test_browser_thread.h" | 11 #include "content/public/test/test_browser_thread.h" |
| 12 #include "extensions/browser/api/storage/leveldb_settings_storage_factory.h" |
| 13 #include "extensions/browser/api/storage/settings_frontend.h" |
| 16 #include "extensions/browser/api/storage/settings_namespace.h" | 14 #include "extensions/browser/api/storage/settings_namespace.h" |
| 15 #include "extensions/browser/api/storage/settings_test_util.h" |
| 17 #include "extensions/browser/value_store/value_store.h" | 16 #include "extensions/browser/value_store/value_store.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 18 |
| 20 using content::BrowserThread; | 19 using content::BrowserThread; |
| 21 | 20 |
| 22 namespace extensions { | 21 namespace extensions { |
| 23 | 22 |
| 24 namespace settings = settings_namespace; | 23 namespace settings = settings_namespace; |
| 25 namespace util = settings_test_util; | 24 namespace util = settings_test_util; |
| 26 | 25 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 frontend_->RunWithStorage( | 283 frontend_->RunWithStorage( |
| 285 extension, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); | 284 extension, settings::SYNC, base::Bind(&UnlimitedSyncStorageTestCallback)); |
| 286 frontend_->RunWithStorage(extension, | 285 frontend_->RunWithStorage(extension, |
| 287 settings::LOCAL, | 286 settings::LOCAL, |
| 288 base::Bind(&UnlimitedLocalStorageTestCallback)); | 287 base::Bind(&UnlimitedLocalStorageTestCallback)); |
| 289 | 288 |
| 290 base::MessageLoop::current()->RunUntilIdle(); | 289 base::MessageLoop::current()->RunUntilIdle(); |
| 291 } | 290 } |
| 292 | 291 |
| 293 } // namespace extensions | 292 } // namespace extensions |
| OLD | NEW |