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

Side by Side Diff: extensions/browser/api/storage/settings_frontend_unittest.cc

Issue 189263013: Move extensions storage API implementation to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698