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

Unified Diff: components/storage_monitor/storage_monitor_linux_unittest.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (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
Index: components/storage_monitor/storage_monitor_linux_unittest.cc
diff --git a/components/storage_monitor/storage_monitor_linux_unittest.cc b/components/storage_monitor/storage_monitor_linux_unittest.cc
index eee2bd3aeb6c5c68ea2a476c8a3aa29e84e84f7e..295215e7ed5cefb7ea70937be7cad8436a7f79fb 100644
--- a/components/storage_monitor/storage_monitor_linux_unittest.cc
+++ b/components/storage_monitor/storage_monitor_linux_unittest.cc
@@ -7,6 +7,8 @@
#include "components/storage_monitor/storage_monitor_linux.h"
#include <mntent.h>
+#include <stddef.h>
+#include <stdint.h>
#include <stdio.h>
#include <string>
@@ -14,6 +16,7 @@
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
@@ -52,7 +55,7 @@ struct TestDeviceData {
const char* device_path;
const char* unique_id;
StorageInfo::Type type;
- uint64 partition_size_in_bytes;
+ uint64_t partition_size_in_bytes;
};
const TestDeviceData kTestDeviceData[] = {
@@ -97,7 +100,7 @@ scoped_ptr<StorageInfo> GetDeviceInfo(const base::FilePath& device_path,
return storage_info.Pass();
}
-uint64 GetDevicePartitionSize(const std::string& device) {
+uint64_t GetDevicePartitionSize(const std::string& device) {
for (size_t i = 0; i < arraysize(kTestDeviceData); ++i) {
if (device == kTestDeviceData[i].device_path)
return kTestDeviceData[i].partition_size_in_bytes;
@@ -241,7 +244,7 @@ class StorageMonitorLinuxTest : public testing::Test {
return monitor_.get();
}
- uint64 GetStorageSize(const base::FilePath& path) {
+ uint64_t GetStorageSize(const base::FilePath& path) {
StorageInfo info;
if (!notifier()->GetStorageInfoForPath(path, &info))
return 0;
« no previous file with comments | « components/storage_monitor/storage_monitor_linux.cc ('k') | components/storage_monitor/storage_monitor_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698