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

Side by Side Diff: google_apis/drive/base_requests_unittest.cc

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 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « google_apis/drive/base_requests.cc ('k') | google_apis/drive/drive_api_parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "google_apis/drive/base_requests.h" 5 #include "google_apis/drive/base_requests.h"
6 6
7 #include <stdint.h>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 12 #include "base/run_loop.h"
11 #include "base/values.h" 13 #include "base/values.h"
12 #include "google_apis/drive/drive_api_parser.h" 14 #include "google_apis/drive/drive_api_parser.h"
13 #include "google_apis/drive/drive_api_requests.h" 15 #include "google_apis/drive/drive_api_requests.h"
14 #include "google_apis/drive/dummy_auth_service.h" 16 #include "google_apis/drive/dummy_auth_service.h"
15 #include "google_apis/drive/request_sender.h" 17 #include "google_apis/drive/request_sender.h"
16 #include "google_apis/drive/test_util.h" 18 #include "google_apis/drive/test_util.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 EntryActionCallback callback_; 53 EntryActionCallback callback_;
52 GURL url_; 54 GURL url_;
53 }; 55 };
54 56
55 class FakeMultipartUploadRequest : public MultipartUploadRequestBase { 57 class FakeMultipartUploadRequest : public MultipartUploadRequestBase {
56 public: 58 public:
57 FakeMultipartUploadRequest( 59 FakeMultipartUploadRequest(
58 base::SequencedTaskRunner* blocking_task_runner, 60 base::SequencedTaskRunner* blocking_task_runner,
59 const std::string& metadata_json, 61 const std::string& metadata_json,
60 const std::string& content_type, 62 const std::string& content_type,
61 int64 content_length, 63 int64_t content_length,
62 const base::FilePath& local_file_path, 64 const base::FilePath& local_file_path,
63 const FileResourceCallback& callback, 65 const FileResourceCallback& callback,
64 const google_apis::ProgressCallback& progress_callback, 66 const google_apis::ProgressCallback& progress_callback,
65 const GURL& url, 67 const GURL& url,
66 std::string* upload_content_type, 68 std::string* upload_content_type,
67 std::string* upload_content_data) 69 std::string* upload_content_data)
68 : MultipartUploadRequestBase(blocking_task_runner, 70 : MultipartUploadRequestBase(blocking_task_runner,
69 metadata_json, 71 metadata_json,
70 content_type, 72 content_type,
71 content_length, 73 content_length,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 "\n" 223 "\n"
222 "This is a sample file. I like chocolate and chips.\n" 224 "This is a sample file. I like chocolate and chips.\n"
223 "\n" 225 "\n"
224 "--TESTBOUNDARY--", 226 "--TESTBOUNDARY--",
225 upload_content_data); 227 upload_content_data);
226 ASSERT_EQ(HTTP_SUCCESS, error); 228 ASSERT_EQ(HTTP_SUCCESS, error);
227 EXPECT_EQ("file_id", file->file_id()); 229 EXPECT_EQ("file_id", file->file_id());
228 } 230 }
229 231
230 } // Namespace google_apis 232 } // Namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/base_requests.cc ('k') | google_apis/drive/drive_api_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698