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

Unified Diff: chrome/browser/chromeos/attestation/fake_certificate.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 5 years 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/attestation/fake_certificate.cc
diff --git a/chrome/browser/chromeos/attestation/fake_certificate.cc b/chrome/browser/chromeos/attestation/fake_certificate.cc
index 42e8d4aafc15f245e8a34c8d03ef95a21600fe2d..3603593499211c9e998c04cc09b242c1773954db 100644
--- a/chrome/browser/chromeos/attestation/fake_certificate.cc
+++ b/chrome/browser/chromeos/attestation/fake_certificate.cc
@@ -4,6 +4,9 @@
#include "chrome/browser/chromeos/attestation/fake_certificate.h"
+#include <stdint.h>
+
+#include "base/macros.h"
#include "base/time/time.h"
#include "crypto/rsa_private_key.h"
#include "net/cert/x509_certificate.h"
@@ -15,7 +18,7 @@ namespace attestation {
namespace {
// A test key encoded as ASN.1 PrivateKeyInfo from PKCS #8.
-const uint8 kTestKeyData[] = {
+const uint8_t kTestKeyData[] = {
0x30, 0x82, 0x01, 0x55, 0x02, 0x01, 0x00, 0x30, 0x0d, 0x06, 0x09, 0x2a,
0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x04, 0x82,
0x01, 0x3f, 0x30, 0x82, 0x01, 0x3b, 0x02, 0x01, 0x00, 0x02, 0x41, 0x00,
@@ -57,9 +60,8 @@ bool GetFakeCertificateDER(const base::TimeDelta& expiry,
valid_start = valid_expiry - base::TimeDelta::FromDays(1);
}
scoped_ptr<crypto::RSAPrivateKey> test_key(
- crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(
- std::vector<uint8>(&kTestKeyData[0],
- &kTestKeyData[arraysize(kTestKeyData)])));
+ crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(std::vector<uint8_t>(
+ &kTestKeyData[0], &kTestKeyData[arraysize(kTestKeyData)])));
if (!test_key.get()) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698