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

Unified Diff: chrome/utility/cloud_print/pwg_encoder_unittest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (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
« no previous file with comments | « chrome/utility/cloud_print/pwg_encoder.cc ('k') | chrome/utility/extensions/extensions_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/cloud_print/pwg_encoder_unittest.cc
diff --git a/chrome/utility/cloud_print/pwg_encoder_unittest.cc b/chrome/utility/cloud_print/pwg_encoder_unittest.cc
index a688cef81bfd95fdf9f427052b80524261a8b719..5661409f06e8612840c98ef01385a3b61f8fa378 100644
--- a/chrome/utility/cloud_print/pwg_encoder_unittest.cc
+++ b/chrome/utility/cloud_print/pwg_encoder_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 "base/files/file_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/sha1.h"
@@ -29,8 +31,8 @@ scoped_ptr<BitmapImage> MakeSampleBitmap() {
new BitmapImage(gfx::Size(kRasterWidth, kRasterHeight),
BitmapImage::RGBA));
- uint32* bitmap_data = reinterpret_cast<uint32*>(
- bitmap_image->pixel_data());
+ uint32_t* bitmap_data =
+ reinterpret_cast<uint32_t*>(bitmap_image->pixel_data());
for (int i = 0; i < kRasterWidth * kRasterHeight; i++) {
bitmap_data[i] = 0xFFFFFF;
@@ -40,7 +42,7 @@ scoped_ptr<BitmapImage> MakeSampleBitmap() {
for (int i = 0; i < kRasterWidth; i++) {
for (int j = 200; j < 300; j++) {
int row_start = j * kRasterWidth;
- uint32 red = (i * 255)/kRasterWidth;
+ uint32_t red = (i * 255) / kRasterWidth;
bitmap_data[row_start + i] = red;
}
}
« no previous file with comments | « chrome/utility/cloud_print/pwg_encoder.cc ('k') | chrome/utility/extensions/extensions_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698