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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_sync_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/json/json_reader.h" 12 #include "base/json/json_reader.h"
13 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" 20 #include "chrome/browser/extensions/api/storage/settings_sync_util.h"
21 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h" 21 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h"
22 #include "chrome/browser/extensions/api/storage/syncable_settings_storage.h" 22 #include "chrome/browser/extensions/api/storage/syncable_settings_storage.h"
23 #include "chrome/test/base/testing_profile.h" 23 #include "chrome/test/base/testing_profile.h"
24 #include "components/sync/api/sync_change_processor.h"
25 #include "components/sync/api/sync_change_processor_wrapper_for_test.h"
26 #include "components/sync/api/sync_error_factory.h"
27 #include "components/sync/api/sync_error_factory_mock.h"
24 #include "content/public/test/test_browser_thread.h" 28 #include "content/public/test/test_browser_thread.h"
25 #include "extensions/browser/api/storage/settings_test_util.h" 29 #include "extensions/browser/api/storage/settings_test_util.h"
26 #include "extensions/browser/api/storage/storage_frontend.h" 30 #include "extensions/browser/api/storage/storage_frontend.h"
27 #include "extensions/browser/event_router.h" 31 #include "extensions/browser/event_router.h"
28 #include "extensions/browser/event_router_factory.h" 32 #include "extensions/browser/event_router_factory.h"
29 #include "extensions/browser/extension_system.h" 33 #include "extensions/browser/extension_system.h"
30 #include "extensions/browser/mock_extension_system.h" 34 #include "extensions/browser/mock_extension_system.h"
31 #include "extensions/browser/value_store/test_value_store_factory.h" 35 #include "extensions/browser/value_store/test_value_store_factory.h"
32 #include "extensions/browser/value_store/testing_value_store.h" 36 #include "extensions/browser/value_store/testing_value_store.h"
33 #include "extensions/common/manifest.h" 37 #include "extensions/common/manifest.h"
34 #include "sync/api/sync_change_processor.h"
35 #include "sync/api/sync_change_processor_wrapper_for_test.h"
36 #include "sync/api/sync_error_factory.h"
37 #include "sync/api/sync_error_factory_mock.h"
38 #include "testing/gtest/include/gtest/gtest.h" 38 #include "testing/gtest/include/gtest/gtest.h"
39 39
40 using base::DictionaryValue; 40 using base::DictionaryValue;
41 using base::ListValue; 41 using base::ListValue;
42 using base::Value; 42 using base::Value;
43 using content::BrowserThread; 43 using content::BrowserThread;
44 44
45 namespace extensions { 45 namespace extensions {
46 46
47 namespace util = settings_test_util; 47 namespace util = settings_test_util;
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 settings_namespace::SYNC, 1411 settings_namespace::SYNC,
1412 base::Bind(&UnlimitedSyncStorageTestCallback)); 1412 base::Bind(&UnlimitedSyncStorageTestCallback));
1413 frontend_->RunWithStorage(extension, 1413 frontend_->RunWithStorage(extension,
1414 settings_namespace::LOCAL, 1414 settings_namespace::LOCAL,
1415 base::Bind(&UnlimitedLocalStorageTestCallback)); 1415 base::Bind(&UnlimitedLocalStorageTestCallback));
1416 1416
1417 base::RunLoop().RunUntilIdle(); 1417 base::RunLoop().RunUntilIdle();
1418 } 1418 }
1419 1419
1420 } // namespace extensions 1420 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698