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

Unified Diff: google_apis/drive/test_util.h

Issue 1548673002: Switch to standard integer types in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « google_apis/drive/request_sender.h ('k') | google_apis/drive/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/test_util.h
diff --git a/google_apis/drive/test_util.h b/google_apis/drive/test_util.h
index 4672f537fa6d18efd53b6b45cd9a7755d208fe20..f959ad76c42f2de28cc516522b151b4ce8947786 100644
--- a/google_apis/drive/test_util.h
+++ b/google_apis/drive/test_util.h
@@ -5,12 +5,16 @@
#ifndef GOOGLE_APIS_DRIVE_TEST_UTIL_H_
#define GOOGLE_APIS_DRIVE_TEST_UTIL_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include <utility>
#include <vector>
#include "base/bind.h"
#include "base/callback.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/template_util.h"
@@ -97,9 +101,9 @@ scoped_ptr<net::test_server::HttpResponse> HandleDownloadFileRequest(
// "bytes <start_position>-<end_position>/<length>".
// Returns true on success.
bool ParseContentRangeHeader(const std::string& value,
- int64* start_position,
- int64* end_position,
- int64* length);
+ int64_t* start_position,
+ int64_t* end_position,
+ int64_t* length);
// Google API related code and Drive File System code work on asynchronous
// architecture and return the results via callbacks.
@@ -265,12 +269,12 @@ CreateCopyResultCallback(T1* out1, T2* out2, T3* out3, T4* out4) {
internal::OutputParams<T1, T2, T3, T4>(out1, out2, out3, out4));
}
-typedef std::pair<int64, int64> ProgressInfo;
+typedef std::pair<int64_t, int64_t> ProgressInfo;
// Helper utility for recording the results via ProgressCallback.
void AppendProgressCallbackResult(std::vector<ProgressInfo>* progress_values,
- int64 progress,
- int64 total);
+ int64_t progress,
+ int64_t total);
// Helper utility for recording the content via GetContentCallback.
class TestGetContentCallback {
« no previous file with comments | « google_apis/drive/request_sender.h ('k') | google_apis/drive/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698