OLD | NEW |
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 #include "chrome/browser/chromeos/login/managed/supervised_user_authentication.h
" | 4 #include "chrome/browser/chromeos/login/managed/supervised_user_authentication.h
" |
5 | 5 |
6 #include "base/values.h" | 6 #include "base/values.h" |
7 #include "chrome/browser/chromeos/login/supervised_user_manager.h" | 7 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 class SupervisedUserAuthenticationTest : public testing::Test { | 12 class SupervisedUserAuthenticationTest : public testing::Test { |
13 protected: | 13 protected: |
14 SupervisedUserAuthenticationTest(); | 14 SupervisedUserAuthenticationTest(); |
15 virtual ~SupervisedUserAuthenticationTest(); | 15 virtual ~SupervisedUserAuthenticationTest(); |
16 | 16 |
17 // testing::Test: | 17 // testing::Test: |
(...skipping 25 matching lines...) Expand all Loading... |
43 std::string salted_password = | 43 std::string salted_password = |
44 SupervisedUserAuthentication::BuildPasswordForHashWithSaltSchema( | 44 SupervisedUserAuthentication::BuildPasswordForHashWithSaltSchema( |
45 salt, password); | 45 salt, password); |
46 ASSERT_EQ(expected_salted_password, salted_password); | 46 ASSERT_EQ(expected_salted_password, salted_password); |
47 std::string signature = SupervisedUserAuthentication::BuildPasswordSignature( | 47 std::string signature = SupervisedUserAuthentication::BuildPasswordSignature( |
48 salted_password, revision, signature_key); | 48 salted_password, revision, signature_key); |
49 ASSERT_EQ(expected_signature, signature); | 49 ASSERT_EQ(expected_signature, signature); |
50 } | 50 } |
51 | 51 |
52 } // namespace chromeos | 52 } // namespace chromeos |
OLD | NEW |