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

Side by Side Diff: chromeos/dbus/fake_auth_policy_client_unittest.cc

Issue 2748013002: Avoid EXPECT_EQ(false, _) in a chromeos unittest. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698