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

Unified Diff: chrome/installer/util/logging_installer_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/installer/util/logging_installer.cc ('k') | chrome/installer/util/lzma_file_allocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/logging_installer_unittest.cc
diff --git a/chrome/installer/util/logging_installer_unittest.cc b/chrome/installer/util/logging_installer_unittest.cc
index 9c20867482ed7e7dc7b8c68c1a6eab152b35ecc7..13b71f5204e51dd5ea89980680a41a66f89d87f6 100644
--- a/chrome/installer/util/logging_installer_unittest.cc
+++ b/chrome/installer/util/logging_installer_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 "base/files/file.h"
@@ -77,9 +79,8 @@ TEST(LoggingInstallerTest, TestInUseNeedsTruncation) {
EXPECT_EQ(static_cast<int64_t>(test_data.size()), file_size);
// Prevent the log file from being moved or deleted.
- uint32 file_flags = base::File::FLAG_OPEN |
- base::File::FLAG_READ |
- base::File::FLAG_EXCLUSIVE_READ;
+ uint32_t file_flags = base::File::FLAG_OPEN | base::File::FLAG_READ |
+ base::File::FLAG_EXCLUSIVE_READ;
base::File temp_platform_file(temp_file, file_flags);
ASSERT_TRUE(temp_platform_file.IsValid());
@@ -107,9 +108,8 @@ TEST(LoggingInstallerTest, TestMoveFailsNeedsTruncation) {
// Create an inconvenient, non-deletable file in the location that
// TruncateLogFileIfNeeded would like to move the log file to.
- uint32 file_flags = base::File::FLAG_CREATE |
- base::File::FLAG_READ |
- base::File::FLAG_EXCLUSIVE_READ;
+ uint32_t file_flags = base::File::FLAG_CREATE | base::File::FLAG_READ |
+ base::File::FLAG_EXCLUSIVE_READ;
base::FilePath temp_file_move_dest(
temp_file.value() + FILE_PATH_LITERAL(".tmp"));
base::File temp_move_destination_file(temp_file_move_dest, file_flags);
« no previous file with comments | « chrome/installer/util/logging_installer.cc ('k') | chrome/installer/util/lzma_file_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698