| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "chromeos/dbus/fake_auth_policy_client.h" | 5 #include "chromeos/dbus/fake_auth_policy_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "components/signin/core/account_id/account_id.h" | 8 #include "components/signin/core/account_id/account_id.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 base::Bind([](authpolicy::ErrorType error) { | 83 base::Bind([](authpolicy::ErrorType error) { |
| 84 EXPECT_EQ(authpolicy::ERROR_DBUS_FAILURE, error); | 84 EXPECT_EQ(authpolicy::ERROR_DBUS_FAILURE, error); |
| 85 })); | 85 })); |
| 86 client.AuthenticateUser( | 86 client.AuthenticateUser( |
| 87 kCorrectUserName, /* password_fd */ -1, | 87 kCorrectUserName, /* password_fd */ -1, |
| 88 base::Bind([](authpolicy::ErrorType error, | 88 base::Bind([](authpolicy::ErrorType error, |
| 89 const authpolicy::ActiveDirectoryAccountData&) { | 89 const authpolicy::ActiveDirectoryAccountData&) { |
| 90 EXPECT_EQ(authpolicy::ERROR_DBUS_FAILURE, error); | 90 EXPECT_EQ(authpolicy::ERROR_DBUS_FAILURE, error); |
| 91 })); | 91 })); |
| 92 client.RefreshDevicePolicy( | 92 client.RefreshDevicePolicy( |
| 93 base::Bind([](bool success) { EXPECT_EQ(false, success); })); | 93 base::Bind([](bool success) { EXPECT_FALSE(success); })); |
| 94 client.RefreshUserPolicy( | 94 client.RefreshUserPolicy( |
| 95 AccountId::FromUserEmail(kCorrectUserName), | 95 AccountId::FromUserEmail(kCorrectUserName), |
| 96 base::Bind([](bool success) { EXPECT_EQ(false, success); })); | 96 base::Bind([](bool success) { EXPECT_FALSE(success); })); |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace chromeos | 99 } // namespace chromeos |
| OLD | NEW |