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

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

Issue 1542413002: Switch to standard integer types in chrome/browser/, 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
Index: chrome/browser/android/offline_pages/offline_page_mhtml_archiver_unittest.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_mhtml_archiver_unittest.cc b/chrome/browser/android/offline_pages/offline_page_mhtml_archiver_unittest.cc
index 2191c746f4b0edeb3d3daa7169002a26b6d325f2..a8c4fc539e7987f7c4fb2208d22bc66116b25cd1 100644
--- a/chrome/browser/android/offline_pages/offline_page_mhtml_archiver_unittest.cc
+++ b/chrome/browser/android/offline_pages/offline_page_mhtml_archiver_unittest.cc
@@ -4,9 +4,12 @@
#include "chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
@@ -22,7 +25,7 @@ namespace {
const char kTestURL[] = "http://example.com/";
const base::FilePath::CharType kTestFilePath[] = FILE_PATH_LITERAL(
"/archive_dir/offline_page.mhtml");
-const int64 kTestFileSize = 123456LL;
+const int64_t kTestFileSize = 123456LL;
class TestMHTMLArchiver : public OfflinePageMHTMLArchiver {
public:
@@ -97,7 +100,7 @@ class OfflinePageMHTMLArchiverTest : public testing::Test {
return last_result_;
}
const base::FilePath& last_file_path() const { return last_file_path_; }
- int64 last_file_size() const { return last_file_size_; }
+ int64_t last_file_size() const { return last_file_size_; }
const OfflinePageArchiver::CreateArchiveCallback callback() {
return base::Bind(&OfflinePageMHTMLArchiverTest::OnCreateArchiveDone,
@@ -109,13 +112,13 @@ class OfflinePageMHTMLArchiverTest : public testing::Test {
OfflinePageArchiver::ArchiverResult result,
const GURL& url,
const base::FilePath& file_path,
- int64 file_size);
+ int64_t file_size);
OfflinePageArchiver* last_archiver_;
OfflinePageArchiver::ArchiverResult last_result_;
GURL last_url_;
base::FilePath last_file_path_;
- int64 last_file_size_;
+ int64_t last_file_size_;
scoped_refptr<base::TestSimpleTaskRunner> task_runner_;
base::ThreadTaskRunnerHandle task_runner_handle_;
@@ -146,7 +149,7 @@ void OfflinePageMHTMLArchiverTest::OnCreateArchiveDone(
OfflinePageArchiver::ArchiverResult result,
const GURL& url,
const base::FilePath& file_path,
- int64 file_size) {
+ int64_t file_size) {
last_url_ = url;
last_archiver_ = archiver;
last_result_ = result;

Powered by Google App Engine
This is Rietveld 408576698