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

Unified Diff: extensions/browser/verified_contents_unittest.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
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
« no previous file with comments | « extensions/browser/verified_contents.cc ('k') | extensions/browser/warning_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/verified_contents_unittest.cc
diff --git a/extensions/browser/verified_contents_unittest.cc b/extensions/browser/verified_contents_unittest.cc
index e4369e2fe1858e4fc25430953811ed4dd2d8b998..4d3c43dd96d67888f313a1e3bb62fb7b3b8b3153 100644
--- a/extensions/browser/verified_contents_unittest.cc
+++ b/extensions/browser/verified_contents_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include <string>
#include <vector>
@@ -51,7 +53,7 @@ TEST(VerifiedContents, Simple) {
// Initialize the VerifiedContents object.
std::string public_key;
ASSERT_TRUE(GetPublicKey(path.AppendASCII(kPublicKeyPem), &public_key));
- VerifiedContents contents(reinterpret_cast<const uint8*>(public_key.data()),
+ VerifiedContents contents(reinterpret_cast<const uint8_t*>(public_key.data()),
public_key.size());
base::FilePath verified_contents_path =
path.AppendASCII("verified_contents.json");
@@ -139,7 +141,7 @@ TEST(VerifiedContents, FailsOnBase64) {
// Initialize the VerifiedContents object.
std::string public_key;
ASSERT_TRUE(GetPublicKey(path.AppendASCII(kPublicKeyPem), &public_key));
- VerifiedContents contents(reinterpret_cast<const uint8*>(public_key.data()),
+ VerifiedContents contents(reinterpret_cast<const uint8_t*>(public_key.data()),
public_key.size());
base::FilePath verified_contents_path =
« no previous file with comments | « extensions/browser/verified_contents.cc ('k') | extensions/browser/warning_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698