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

Side by Side Diff: components/gcm_driver/crypto/p256_key_util_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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 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 "components/gcm_driver/crypto/p256_key_util.h" 5 #include "components/gcm_driver/crypto/p256_key_util.h"
6 6
7 #include <stddef.h>
8
7 #include <set> 9 #include <set>
8 10
9 #include "base/base64.h" 11 #include "base/base64.h"
10 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
11 13
12 namespace gcm { 14 namespace gcm {
13 15
14 namespace { 16 namespace {
15 17
16 // A P-256 point in uncompressed form consists of 0x04 (to denote that the point 18 // A P-256 point in uncompressed form consists of 0x04 (to denote that the point
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 std::string bob_carol_shared_secret; 148 std::string bob_carol_shared_secret;
147 ASSERT_TRUE(base::Base64Decode( 149 ASSERT_TRUE(base::Base64Decode(
148 kBobCarolSharedSecret, &bob_carol_shared_secret)); 150 kBobCarolSharedSecret, &bob_carol_shared_secret));
149 151
150 EXPECT_EQ(carol_shared_secret, bob_carol_shared_secret); 152 EXPECT_EQ(carol_shared_secret, bob_carol_shared_secret);
151 } 153 }
152 154
153 } // namespace 155 } // namespace
154 156
155 } // namespace gcm 157 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/crypto/p256_key_util_openssl.cc ('k') | components/gcm_driver/default_gcm_app_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698