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

Side by Side Diff: chrome/browser/chromeos/preferences_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 "chrome/browser/chromeos/preferences.h" 5 #include "chrome/browser/chromeos/preferences.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/json/json_string_value_serializer.h" 9 #include "base/json/json_string_value_serializer.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" 13 #include "chrome/browser/chromeos/input_method/input_method_configuration.h"
14 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" 14 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
15 #include "chrome/browser/chromeos/login/session/user_session_manager.h" 15 #include "chrome/browser/chromeos/login/session/user_session_manager.h"
16 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" 16 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h"
17 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" 17 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
18 #include "chrome/common/chrome_constants.h" 18 #include "chrome/common/chrome_constants.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "chrome/test/base/testing_browser_process.h" 20 #include "chrome/test/base/testing_browser_process.h"
21 #include "chrome/test/base/testing_profile.h" 21 #include "chrome/test/base/testing_profile.h"
22 #include "chrome/test/base/testing_profile_manager.h" 22 #include "chrome/test/base/testing_profile_manager.h"
23 #include "components/prefs/pref_member.h" 23 #include "components/prefs/pref_member.h"
24 #include "components/sync/api/attachments/attachment_id.h"
25 #include "components/sync/api/fake_sync_change_processor.h"
26 #include "components/sync/api/sync_change.h"
27 #include "components/sync/api/sync_data.h"
28 #include "components/sync/api/sync_error_factory.h"
29 #include "components/sync/api/sync_error_factory_mock.h"
30 #include "components/sync/api/syncable_service.h"
31 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h"
32 #include "components/sync/protocol/preference_specifics.pb.h"
33 #include "components/sync/protocol/sync.pb.h"
24 #include "components/syncable_prefs/testing_pref_service_syncable.h" 34 #include "components/syncable_prefs/testing_pref_service_syncable.h"
25 #include "content/public/test/test_browser_thread_bundle.h" 35 #include "content/public/test/test_browser_thread_bundle.h"
26 #include "content/public/test/test_utils.h" 36 #include "content/public/test/test_utils.h"
27 #include "sync/api/attachments/attachment_id.h"
28 #include "sync/api/fake_sync_change_processor.h"
29 #include "sync/api/sync_change.h"
30 #include "sync/api/sync_data.h"
31 #include "sync/api/sync_error_factory.h"
32 #include "sync/api/sync_error_factory_mock.h"
33 #include "sync/api/syncable_service.h"
34 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
35 #include "sync/protocol/preference_specifics.pb.h"
36 #include "sync/protocol/sync.pb.h"
37 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
38 #include "ui/base/ime/chromeos/extension_ime_util.h" 38 #include "ui/base/ime/chromeos/extension_ime_util.h"
39 #include "ui/base/ime/chromeos/input_method_whitelist.h" 39 #include "ui/base/ime/chromeos/input_method_whitelist.h"
40 #include "ui/base/ime/chromeos/mock_component_extension_ime_manager_delegate.h" 40 #include "ui/base/ime/chromeos/mock_component_extension_ime_manager_delegate.h"
41 #include "url/gurl.h" 41 #include "url/gurl.h"
42 42
43 namespace chromeos { 43 namespace chromeos {
44 namespace { 44 namespace {
45 45
46 const char kIdentityIMEID[] = 46 const char kIdentityIMEID[] =
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 "Syncable values should have added local values on initialization."); 689 "Syncable values should have added local values on initialization.");
690 ExpectGlobalValues( 690 ExpectGlobalValues(
691 "es,en-US", 691 "es,en-US",
692 "xkb:es::spa,xkb:us::eng,xkb:ru::rus,xkb:xy::xyz," + 692 "xkb:es::spa,xkb:us::eng,xkb:ru::rus,xkb:xy::xyz," +
693 ToInputMethodIds("xkb:jp::jpn"), 693 ToInputMethodIds("xkb:jp::jpn"),
694 std::string(kIdentityIMEID) + "," + kUnknownIMEID); 694 std::string(kIdentityIMEID) + "," + kUnknownIMEID);
695 } 695 }
696 } 696 }
697 697
698 } // namespace chromeos 698 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc ('k') | chrome/browser/extensions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698