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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_authentication_unittest.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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/supervised/supervised_user_authenticatio n.h" 4 #include "chrome/browser/chromeos/login/supervised/supervised_user_authenticatio n.h"
5 5
6 #include "base/macros.h"
6 #include "base/values.h" 7 #include "base/values.h"
7 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" 8 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h"
8 #include "chromeos/login/auth/key.h" 9 #include "chromeos/login/auth/key.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 11
11 namespace chromeos { 12 namespace chromeos {
12 13
13 class SupervisedUserAuthenticationTest : public testing::Test { 14 class SupervisedUserAuthenticationTest : public testing::Test {
14 protected: 15 protected:
15 SupervisedUserAuthenticationTest(); 16 SupervisedUserAuthenticationTest();
(...skipping 27 matching lines...) Expand all
43 44
44 Key key(password); 45 Key key(password);
45 key.Transform(Key::KEY_TYPE_SALTED_PBKDF2_AES256_1234, salt); 46 key.Transform(Key::KEY_TYPE_SALTED_PBKDF2_AES256_1234, salt);
46 ASSERT_EQ(expected_salted_password, key.GetSecret()); 47 ASSERT_EQ(expected_salted_password, key.GetSecret());
47 std::string signature = SupervisedUserAuthentication::BuildPasswordSignature( 48 std::string signature = SupervisedUserAuthentication::BuildPasswordSignature(
48 key.GetSecret(), revision, signature_key); 49 key.GetSecret(), revision, signature_key);
49 ASSERT_EQ(expected_signature, signature); 50 ASSERT_EQ(expected_signature, signature);
50 } 51 }
51 52
52 } // namespace chromeos 53 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698