| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |