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

Unified Diff: components/printing/test/mock_printer.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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 | « components/printing/test/mock_printer.h ('k') | components/printing/test/print_mock_render_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/test/mock_printer.cc
diff --git a/components/printing/test/mock_printer.cc b/components/printing/test/mock_printer.cc
index a832e9c0fd8f3a6926645bb8dccfac3d577b31a7..1ab67bc6208d4a23848c61ab999a0ef8b6d39f6f 100644
--- a/components/printing/test/mock_printer.cc
+++ b/components/printing/test/mock_printer.cc
@@ -4,11 +4,11 @@
#include "components/printing/test/mock_printer.h"
-#include "base/basictypes.h"
#include "base/files/file_util.h"
#include "base/memory/shared_memory.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
+#include "build/build_config.h"
#include "components/printing/common/print_messages.h"
#include "ipc/ipc_message_utils.h"
#include "printing/pdf_metafile_skia.h"
@@ -43,11 +43,11 @@ void UpdateMargins(int margins_type, int dpi, PrintMsg_Print_Params* params) {
} // namespace
MockPrinterPage::MockPrinterPage(const void* source_data,
- uint32 source_size,
+ uint32_t source_size,
const printing::Image& image)
: source_size_(source_size), image_(image) {
// Create copies of the source data
- source_data_.reset(new uint8[source_size]);
+ source_data_.reset(new uint8_t[source_size]);
if (source_data_.get())
memcpy(source_data_.get(), source_data, source_size);
}
@@ -269,8 +269,8 @@ bool MockPrinter::SaveSource(unsigned int page,
const base::FilePath& filepath) const {
if (printer_status_ != PRINTER_READY || page >= pages_.size())
return false;
- const uint8* source_data = pages_[page]->source_data();
- uint32 source_size = pages_[page]->source_size();
+ const uint8_t* source_data = pages_[page]->source_data();
+ uint32_t source_size = pages_[page]->source_size();
base::WriteFile(filepath, reinterpret_cast<const char*>(source_data),
source_size);
return true;
« no previous file with comments | « components/printing/test/mock_printer.h ('k') | components/printing/test/print_mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698