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

Side by Side Diff: chrome/browser/supervised_user/legacy/supervised_user_pref_mapping_service_unittest.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <string> 5 #include <string>
6 6
7 #include "chrome/browser/supervised_user/legacy/supervised_user_pref_mapping_ser vice.h" 7 #include "chrome/browser/supervised_user/legacy/supervised_user_pref_mapping_ser vice.h"
8 #include "chrome/browser/supervised_user/legacy/supervised_user_pref_mapping_ser vice_factory.h" 8 #include "chrome/browser/supervised_user/legacy/supervised_user_pref_mapping_ser vice_factory.h"
9 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_ service.h" 9 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_ service.h"
10 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_ service_factory.h" 10 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_ service_factory.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 kFakeSupervisedUserId, supervised_users::kChromeAvatarIndex); 54 kFakeSupervisedUserId, supervised_users::kChromeAvatarIndex);
55 int avatar_index; 55 int avatar_index;
56 value->GetAsInteger(&avatar_index); 56 value->GetAsInteger(&avatar_index);
57 EXPECT_EQ(avatar_index, 4); 57 EXPECT_EQ(avatar_index, 4);
58 } 58 }
59 59
60 TEST_F(SupervisedUserPrefMappingServiceTest, CheckSharedSettingUpdate) { 60 TEST_F(SupervisedUserPrefMappingServiceTest, CheckSharedSettingUpdate) {
61 EXPECT_EQ(profile_.GetPrefs()->GetInteger(prefs::kProfileAvatarIndex), -1); 61 EXPECT_EQ(profile_.GetPrefs()->GetInteger(prefs::kProfileAvatarIndex), -1);
62 shared_settings_service_->SetValue(kFakeSupervisedUserId, 62 shared_settings_service_->SetValue(kFakeSupervisedUserId,
63 supervised_users::kChromeAvatarIndex, 63 supervised_users::kChromeAvatarIndex,
64 base::FundamentalValue(1)); 64 base::Value(1));
65 mapping_service_->OnSharedSettingChanged( 65 mapping_service_->OnSharedSettingChanged(
66 kFakeSupervisedUserId, 66 kFakeSupervisedUserId,
67 supervised_users::kChromeAvatarIndex); 67 supervised_users::kChromeAvatarIndex);
68 EXPECT_EQ(profile_.GetPrefs()->GetInteger(prefs::kProfileAvatarIndex), 1); 68 EXPECT_EQ(profile_.GetPrefs()->GetInteger(prefs::kProfileAvatarIndex), 1);
69 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698