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

Unified Diff: printing/printing_context_win_unittest.cc

Issue 1544623002: Switch to standard integer types in printing/. (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 | « printing/printing_context_win.h ('k') | printing/printing_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_win_unittest.cc
diff --git a/printing/printing_context_win_unittest.cc b/printing/printing_context_win_unittest.cc
index 171d97ce75759914ed3c58f76cf799ad73edb83c..b71442b0ee198ea00ae67e5240ce9633e6fefbc2 100644
--- a/printing/printing_context_win_unittest.cc
+++ b/printing/printing_context_win_unittest.cc
@@ -4,6 +4,9 @@
#include "printing/printing_context_win.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/win/scoped_handle.h"
@@ -115,19 +118,16 @@ class MockPrintingContextWin : public PrintingContextSytemDialogWin {
DEVNAMES* dev_names = reinterpret_cast<DEVNAMES*>(dev_names_ptr);
dev_names->wDefault = 1;
dev_names->wDriverOffset = sizeof(DEVNAMES) / sizeof(wchar_t);
- memcpy(reinterpret_cast<uint8*>(dev_names_ptr) + dev_names->wDriverOffset,
- info_2.get()->pDriverName,
- driver_size);
+ memcpy(reinterpret_cast<uint8_t*>(dev_names_ptr) + dev_names->wDriverOffset,
+ info_2.get()->pDriverName, driver_size);
dev_names->wDeviceOffset = base::checked_cast<WORD>(
dev_names->wDriverOffset + driver_size / sizeof(wchar_t));
- memcpy(reinterpret_cast<uint8*>(dev_names_ptr) + dev_names->wDeviceOffset,
- info_2.get()->pPrinterName,
- printer_size);
+ memcpy(reinterpret_cast<uint8_t*>(dev_names_ptr) + dev_names->wDeviceOffset,
+ info_2.get()->pPrinterName, printer_size);
dev_names->wOutputOffset = base::checked_cast<WORD>(
dev_names->wDeviceOffset + printer_size / sizeof(wchar_t));
- memcpy(reinterpret_cast<uint8*>(dev_names_ptr) + dev_names->wOutputOffset,
- info_2.get()->pPortName,
- port_size);
+ memcpy(reinterpret_cast<uint8_t*>(dev_names_ptr) + dev_names->wOutputOffset,
+ info_2.get()->pPortName, port_size);
GlobalUnlock(dev_names_mem.Get());
dev_names_ptr = NULL;
« no previous file with comments | « printing/printing_context_win.h ('k') | printing/printing_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698