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

Side by Side Diff: chrome/browser/signin/easy_unlock_service_unittest_chromeos.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/signin/easy_unlock_service.h" 5 #include "chrome/browser/signin/easy_unlock_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 kTestUserPrimary, kPrimaryGaiaId)); 229 kTestUserPrimary, kPrimaryGaiaId));
230 } 230 }
231 231
232 void TearDown() override { 232 void TearDown() override {
233 delete app_manager_factory; 233 delete app_manager_factory;
234 app_manager_factory = NULL; 234 app_manager_factory = NULL;
235 } 235 }
236 236
237 void SetEasyUnlockAllowedPolicy(bool allowed) { 237 void SetEasyUnlockAllowedPolicy(bool allowed) {
238 profile_->GetTestingPrefService()->SetManagedPref( 238 profile_->GetTestingPrefService()->SetManagedPref(
239 prefs::kEasyUnlockAllowed, new base::FundamentalValue(allowed)); 239 prefs::kEasyUnlockAllowed, new base::Value(allowed));
240 } 240 }
241 241
242 void set_is_bluetooth_adapter_present(bool is_present) { 242 void set_is_bluetooth_adapter_present(bool is_present) {
243 is_bluetooth_adapter_present_ = is_present; 243 is_bluetooth_adapter_present_ = is_present;
244 } 244 }
245 245
246 bool is_bluetooth_adapter_present() const { 246 bool is_bluetooth_adapter_present() const {
247 return is_bluetooth_adapter_present_; 247 return is_bluetooth_adapter_present_;
248 } 248 }
249 249
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 EXPECT_EQ(AccountId::FromUserEmailGaiaId(kTestUserPrimary, kPrimaryGaiaId), 384 EXPECT_EQ(AccountId::FromUserEmailGaiaId(kTestUserPrimary, kPrimaryGaiaId),
385 EasyUnlockService::Get(profile_.get())->GetAccountId()); 385 EasyUnlockService::Get(profile_.get())->GetAccountId());
386 386
387 SetUpSecondaryProfile(); 387 SetUpSecondaryProfile();
388 EXPECT_EQ(AccountId::FromUserEmailGaiaId(kTestUserSecondary, 388 EXPECT_EQ(AccountId::FromUserEmailGaiaId(kTestUserSecondary,
389 kSecondaryGaiaId), 389 kSecondaryGaiaId),
390 EasyUnlockService::Get(secondary_profile_.get())->GetAccountId()); 390 EasyUnlockService::Get(secondary_profile_.get())->GetAccountId());
391 } 391 }
392 392
393 } // namespace 393 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698