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

Side by Side Diff: components/gcm_driver/crypto/gcm_crypto_test_helpers.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/gcm_crypto_test_helpers.h" 5 #include "components/gcm_driver/crypto/gcm_crypto_test_helpers.h"
6 6
7 #include <stddef.h>
8
7 #include <sstream> 9 #include <sstream>
8 #include <string> 10 #include <string>
9 11
10 #include "base/base64url.h" 12 #include "base/base64url.h"
11 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
12 #include "components/gcm_driver/common/gcm_messages.h" 14 #include "components/gcm_driver/common/gcm_messages.h"
13 #include "components/gcm_driver/crypto/gcm_message_cryptographer.h" 15 #include "components/gcm_driver/crypto/gcm_message_cryptographer.h"
14 #include "components/gcm_driver/crypto/p256_key_util.h" 16 #include "components/gcm_driver/crypto/p256_key_util.h"
15 #include "crypto/random.h" 17 #include "crypto/random.h"
16 18
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 std::stringstream crypto_key_header; 74 std::stringstream crypto_key_header;
73 crypto_key_header << "dh=" << encoded_public_key; 75 crypto_key_header << "dh=" << encoded_public_key;
74 76
75 message->data["crypto_key"] = crypto_key_header.str(); 77 message->data["crypto_key"] = crypto_key_header.str();
76 78
77 message->raw_data.swap(ciphertext); 79 message->raw_data.swap(ciphertext);
78 return true; 80 return true;
79 } 81 }
80 82
81 } // namespace gcm 83 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698