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

Side by Side Diff: chrome/browser/chromeos/preferences_unittest.cc

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | 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 "chrome/browser/chromeos/preferences.h" 5 #include "chrome/browser/chromeos/preferences.h"
6 6
7 #include "base/prefs/pref_member.h" 7 #include "base/prefs/pref_member.h"
8 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" 8 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
9 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" 9 #include "chrome/browser/chromeos/login/users/fake_user_manager.h"
10 #include "chrome/browser/chromeos/login/users/user_manager.h" 10 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
11 #include "chrome/browser/download/download_prefs.h" 11 #include "chrome/browser/download/download_prefs.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "chrome/test/base/testing_pref_service_syncable.h" 13 #include "chrome/test/base/testing_pref_service_syncable.h"
14 #include "components/pref_registry/pref_registry_syncable.h" 14 #include "components/pref_registry/pref_registry_syncable.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace chromeos { 17 namespace chromeos {
18 namespace { 18 namespace {
19 19
20 class MyMockInputMethodManager : public input_method::MockInputMethodManager { 20 class MyMockInputMethodManager : public input_method::MockInputMethodManager {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 testee.InitUserPrefsForTesting(&prefs, test_user); 75 testee.InitUserPrefsForTesting(&prefs, test_user);
76 testee.SetInputMethodListForTesting(); 76 testee.SetInputMethodListForTesting();
77 77
78 // Confirm they're unchanged. 78 // Confirm they're unchanged.
79 EXPECT_EQ("KeyboardA", previous.GetValue()); 79 EXPECT_EQ("KeyboardA", previous.GetValue());
80 EXPECT_EQ("KeyboardB", current.GetValue()); 80 EXPECT_EQ("KeyboardB", current.GetValue());
81 EXPECT_EQ("KeyboardB", mock_manager.last_input_method_id_); 81 EXPECT_EQ("KeyboardB", mock_manager.last_input_method_id_);
82 } 82 }
83 83
84 } // namespace chromeos 84 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences_browsertest.cc ('k') | chrome/browser/chromeos/profiles/avatar_menu_actions_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698