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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_challenge_wrapper_unittest.cc

Issue 2502343003: Moved //components/proximity_auth/cryptauth to //components/cryptauth. (Closed)
Patch Set: Fixed proto #includes. Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/chromeos/login/easy_unlock/easy_unlock_challenge_wrappe r.h" 5 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_challenge_wrappe r.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/proximity_auth/cryptauth/proto/securemessage.pb.h" 9 #include "components/cryptauth/proto/securemessage.pb.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 namespace { 13 namespace {
14 14
15 const char kSalt[] = 15 const char kSalt[] =
16 "\xbf\x9d\x2a\x53\xc6\x36\x16\xd7\x5d\xb0\xa7\x16\x5b\x91\xc1\xef\x73\xe5" 16 "\xbf\x9d\x2a\x53\xc6\x36\x16\xd7\x5d\xb0\xa7\x16\x5b\x91\xc1\xef\x73\xe5"
17 "\x37\xf2\x42\x74\x05\xfa\x23\x61\x0a\x4b\xe6\x57\x64\x2e"; 17 "\x37\xf2\x42\x74\x05\xfa\x23\x61\x0a\x4b\xe6\x57\x64\x2e";
18 18
19 const char kChallenge[] = "challenge"; 19 const char kChallenge[] = "challenge";
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ASSERT_TRUE(challenge_secure_message.ParseFromString(wrapped_challenge)); 71 ASSERT_TRUE(challenge_secure_message.ParseFromString(wrapped_challenge));
72 EXPECT_EQ(kChallenge, challenge_secure_message.header_and_body()); 72 EXPECT_EQ(kChallenge, challenge_secure_message.header_and_body());
73 73
74 securemessage::SecureMessage signature_secure_message; 74 securemessage::SecureMessage signature_secure_message;
75 ASSERT_TRUE(signature_secure_message.ParseFromString( 75 ASSERT_TRUE(signature_secure_message.ParseFromString(
76 challenge_secure_message.signature())); 76 challenge_secure_message.signature()));
77 EXPECT_EQ(kSignature, signature_secure_message.signature()); 77 EXPECT_EQ(kSignature, signature_secure_message.signature());
78 } 78 }
79 79
80 } // namespace chromeos 80 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698