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

Unified Diff: chrome/browser/chromeos/login/managed/supervised_user_authentication_unittest.cc

Issue 393343002: Rename "managed (mode|user)" to "supervised user" (part 7) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more alphabetize (and rebase again) Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/managed/supervised_user_authentication_unittest.cc
diff --git a/chrome/browser/chromeos/login/managed/supervised_user_authentication_unittest.cc b/chrome/browser/chromeos/login/managed/supervised_user_authentication_unittest.cc
deleted file mode 100644
index e288e0e3afdb3a3a1e1bdc40053a5cb0266c8222..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/managed/supervised_user_authentication_unittest.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-#include "chrome/browser/chromeos/login/managed/supervised_user_authentication.h"
-
-#include "base/values.h"
-#include "chrome/browser/chromeos/login/users/supervised_user_manager.h"
-#include "chromeos/login/auth/key.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace chromeos {
-
-class SupervisedUserAuthenticationTest : public testing::Test {
- protected:
- SupervisedUserAuthenticationTest();
- virtual ~SupervisedUserAuthenticationTest();
-
- // testing::Test:
- virtual void SetUp() OVERRIDE;
- virtual void TearDown() OVERRIDE;
-
- DISALLOW_COPY_AND_ASSIGN(SupervisedUserAuthenticationTest);
-};
-
-SupervisedUserAuthenticationTest::SupervisedUserAuthenticationTest() {}
-
-SupervisedUserAuthenticationTest::~SupervisedUserAuthenticationTest() {}
-
-void SupervisedUserAuthenticationTest::SetUp() {}
-
-void SupervisedUserAuthenticationTest::TearDown() {}
-
-TEST_F(SupervisedUserAuthenticationTest, SignatureGeneration) {
- std::string password = "password";
- int revision = 1;
- std::string salt =
- "204cc733ebe526ea9a84885de904eb7a578d86a4c385d252dce275d9d9675c37";
- std::string expected_salted_password =
- "OSL3HZZSfK+mDQTYUh3lXhgAzJNWhYz52ax0Bleny7Q=";
- std::string signature_key = "p5TR/34XX0R7IMuffH14BiL1vcdSD8EajPzdIg09z9M=";
- std::string expected_signature =
- "KOPQmmJcMr9iMkr36N1cX+G9gDdBBu7zutAxNayPMN4=";
-
- Key key(password);
- key.Transform(Key::KEY_TYPE_SALTED_PBKDF2_AES256_1234, salt);
- ASSERT_EQ(expected_salted_password, key.GetSecret());
- std::string signature = SupervisedUserAuthentication::BuildPasswordSignature(
- key.GetSecret(), revision, signature_key);
- ASSERT_EQ(expected_signature, signature);
-}
-
-} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698