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

Unified Diff: components/drive/resource_metadata_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 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
« no previous file with comments | « components/drive/resource_metadata_storage_unittest.cc ('k') | components/drive/search_metadata.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/resource_metadata_unittest.cc
diff --git a/components/drive/resource_metadata_unittest.cc b/components/drive/resource_metadata_unittest.cc
index 15beb4d5284802d24fe5154f18f6c6b18d77d9e3..51299f2a1788ada0cdf3dc54eb420285f21d3a81 100644
--- a/components/drive/resource_metadata_unittest.cc
+++ b/components/drive/resource_metadata_unittest.cc
@@ -4,6 +4,9 @@
#include "components/drive/resource_metadata.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <algorithm>
#include <string>
#include <vector>
@@ -26,7 +29,7 @@ namespace {
// The changestamp of the resource metadata used in
// ResourceMetadataTest.
-const int64 kTestChangestamp = 100;
+const int64_t kTestChangestamp = 100;
// Returns the sorted base names from |entries|.
std::vector<std::string> GetSortedBaseNames(
@@ -170,10 +173,10 @@ class ResourceMetadataTest : public testing::Test {
};
TEST_F(ResourceMetadataTest, LargestChangestamp) {
- const int64 kChangestamp = 123456;
+ const int64_t kChangestamp = 123456;
EXPECT_EQ(FILE_ERROR_OK,
resource_metadata_->SetLargestChangestamp(kChangestamp));
- int64 changestamp = 0;
+ int64_t changestamp = 0;
EXPECT_EQ(FILE_ERROR_OK,
resource_metadata_->GetLargestChangestamp(&changestamp));
EXPECT_EQ(kChangestamp, changestamp);
@@ -672,7 +675,7 @@ TEST_F(ResourceMetadataTest, Reset) {
EXPECT_EQ(FILE_ERROR_OK, resource_metadata_->Reset());
// change stamp should be reset.
- int64 changestamp = 0;
+ int64_t changestamp = 0;
EXPECT_EQ(FILE_ERROR_OK,
resource_metadata_->GetLargestChangestamp(&changestamp));
EXPECT_EQ(0, changestamp);
« no previous file with comments | « components/drive/resource_metadata_storage_unittest.cc ('k') | components/drive/search_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698