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

Unified Diff: components/offline_pages/offline_page_metadata_store_impl_unittest.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
Index: components/offline_pages/offline_page_metadata_store_impl_unittest.cc
diff --git a/components/offline_pages/offline_page_metadata_store_impl_unittest.cc b/components/offline_pages/offline_page_metadata_store_impl_unittest.cc
index 4965d387cd9b48ce11cf074063766e31b99b471f..01b5f3c99df1ceff5cecce584795bc83b83d707b 100644
--- a/components/offline_pages/offline_page_metadata_store_impl_unittest.cc
+++ b/components/offline_pages/offline_page_metadata_store_impl_unittest.cc
@@ -4,6 +4,8 @@
#include "components/offline_pages/offline_page_metadata_store_impl.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
@@ -23,10 +25,10 @@ namespace offline_pages {
namespace {
const char kTestURL[] = "https://example.com";
-const int64 kTestBookmarkId = 1234LL;
+const int64_t kTestBookmarkId = 1234LL;
const base::FilePath::CharType kFilePath[] =
FILE_PATH_LITERAL("/offline_pages/example_com.mhtml");
-int64 kFileSize = 234567;
+int64_t kFileSize = 234567;
class OfflinePageMetadataStoreImplTest : public testing::Test {
public:
@@ -178,7 +180,7 @@ TEST_F(OfflinePageMetadataStoreImplTest, RemoveOfflinePage) {
EXPECT_EQ(1U, offline_pages_.size());
// Remove the offline page.
- std::vector<int64> ids_to_remove;
+ std::vector<int64_t> ids_to_remove;
ids_to_remove.push_back(offline_page.bookmark_id);
store->RemoveOfflinePages(
ids_to_remove,
@@ -249,7 +251,7 @@ TEST_F(OfflinePageMetadataStoreImplTest, AddRemoveMultipleOfflinePages) {
EXPECT_EQ(2U, offline_pages_.size());
// Remove the offline page.
- std::vector<int64> ids_to_remove;
+ std::vector<int64_t> ids_to_remove;
ids_to_remove.push_back(offline_page_1.bookmark_id);
store->RemoveOfflinePages(
ids_to_remove,
« no previous file with comments | « components/offline_pages/offline_page_metadata_store_impl.cc ('k') | components/offline_pages/offline_page_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698