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

Unified Diff: chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc

Issue 2260443003: [Offline Pages] Clean up some constant value types for proposed_offline_id arg. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 4 months 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: chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc b/chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc
index f06f74bd22ce87390c18cbbebe728090aaed1019..aa0b6c5388d0483336aaebb0b63b07b2f4fc7b0c 100644
--- a/chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc
+++ b/chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc
@@ -175,7 +175,7 @@ void OfflinePageTabHelperTest::SetUp() {
std::unique_ptr<OfflinePageTestArchiver> archiver(BuildArchiver(
kTestPageUrl, base::FilePath(FILE_PATH_LITERAL("page1.mhtml"))));
model->SavePage(
- kTestPageUrl, kTestClientId, 0ul, std::move(archiver),
+ kTestPageUrl, kTestClientId, 0l, std::move(archiver),
base::Bind(&OfflinePageTabHelperTest::OnSavePageDone, AsWeakPtr()));
RunUntilIdle();
}
@@ -346,7 +346,7 @@ TEST_F(OfflinePageTabHelperTest, SelectBestPageForCurrentTab) {
// We expect this copy to be used later.
ClientId client_id(kLastNNamespace, base::IntToString(kTabId));
model->SavePage(
- kTestPageUrl, client_id, 0ul, std::move(archiver),
+ kTestPageUrl, client_id, 0l, std::move(archiver),
base::Bind(&OfflinePageTabHelperTest::OnSavePageDone, AsWeakPtr()));
RunUntilIdle();
const int64_t expected_offline_id = offline_id();
@@ -356,7 +356,7 @@ TEST_F(OfflinePageTabHelperTest, SelectBestPageForCurrentTab) {
base::FilePath(FILE_PATH_LITERAL("page3.html")));
client_id.id = "39";
model->SavePage(
- kTestPageUrl, client_id, 0ul, std::move(archiver),
+ kTestPageUrl, client_id, 0l, std::move(archiver),
base::Bind(&OfflinePageTabHelperTest::OnSavePageDone, AsWeakPtr()));
RunUntilIdle();
@@ -431,7 +431,7 @@ TEST_F(OfflinePageTabHelperTest, SwitchToOfflineAsyncLoadedPageOnNoNetwork) {
// We expect this Async Loading Namespace copy to be used.
ClientId client_id(kAsyncNamespace, base::IntToString(kTabId));
model->SavePage(
- kTestPageUrl, client_id, 0ul, std::move(archiver),
+ kTestPageUrl, client_id, 0l, std::move(archiver),
base::Bind(&OfflinePageTabHelperTest::OnSavePageDone, AsWeakPtr()));
RunUntilIdle();
const int64_t expected_offline_id = offline_id();

Powered by Google App Engine
This is Rietveld 408576698