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

Side by Side Diff: net/http/http_transaction_test_util.h

Issue 1316863007: Change GetTotalReceivedBytes() from int64 to int64_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master Created 5 years, 3 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 | « net/http/http_transaction.h ('k') | net/http/http_transaction_test_util.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_
6 #define NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_
7 7
8 #include "net/http/http_transaction.h" 8 #include "net/http/http_transaction.h"
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 bool IsReadyToRestartForAuth() override; 190 bool IsReadyToRestartForAuth() override;
191 191
192 int Read(IOBuffer* buf, 192 int Read(IOBuffer* buf,
193 int buf_len, 193 int buf_len,
194 const CompletionCallback& callback) override; 194 const CompletionCallback& callback) override;
195 195
196 void StopCaching() override; 196 void StopCaching() override;
197 197
198 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; 198 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override;
199 199
200 int64 GetTotalReceivedBytes() const override; 200 int64_t GetTotalReceivedBytes() const override;
201 201
202 int64_t GetTotalSentBytes() const override; 202 int64_t GetTotalSentBytes() const override;
203 203
204 void DoneReading() override; 204 void DoneReading() override;
205 205
206 const HttpResponseInfo* GetResponseInfo() const override; 206 const HttpResponseInfo* GetResponseInfo() const override;
207 207
208 LoadState GetLoadState() const override; 208 LoadState GetLoadState() const override;
209 209
210 UploadProgress GetUploadProgress() const override; 210 UploadProgress GetUploadProgress() const override;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void RunCallback(const CompletionCallback& callback, int result); 249 void RunCallback(const CompletionCallback& callback, int result);
250 250
251 const HttpRequestInfo* request_; 251 const HttpRequestInfo* request_;
252 HttpResponseInfo response_; 252 HttpResponseInfo response_;
253 std::string data_; 253 std::string data_;
254 int data_cursor_; 254 int data_cursor_;
255 int test_mode_; 255 int test_mode_;
256 RequestPriority priority_; 256 RequestPriority priority_;
257 CreateHelper* websocket_handshake_stream_create_helper_; 257 CreateHelper* websocket_handshake_stream_create_helper_;
258 base::WeakPtr<MockNetworkLayer> transaction_factory_; 258 base::WeakPtr<MockNetworkLayer> transaction_factory_;
259 int64 received_bytes_; 259 int64_t received_bytes_;
260 int64_t sent_bytes_; 260 int64_t sent_bytes_;
261 261
262 // NetLog ID of the fake / non-existent underlying socket used by the 262 // NetLog ID of the fake / non-existent underlying socket used by the
263 // connection. Requires Start() be passed a BoundNetLog with a real NetLog to 263 // connection. Requires Start() be passed a BoundNetLog with a real NetLog to
264 // be initialized. 264 // be initialized.
265 unsigned int socket_log_id_; 265 unsigned int socket_log_id_;
266 266
267 base::WeakPtrFactory<MockNetworkTransaction> weak_factory_; 267 base::WeakPtrFactory<MockNetworkTransaction> weak_factory_;
268 268
269 }; 269 };
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 //----------------------------------------------------------------------------- 330 //-----------------------------------------------------------------------------
331 // helpers 331 // helpers
332 332
333 // read the transaction completely 333 // read the transaction completely
334 int ReadTransaction(HttpTransaction* trans, std::string* result); 334 int ReadTransaction(HttpTransaction* trans, std::string* result);
335 335
336 } // namespace net 336 } // namespace net
337 337
338 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_ 338 #endif // NET_HTTP_HTTP_TRANSACTION_UNITTEST_H_
OLDNEW
« no previous file with comments | « net/http/http_transaction.h ('k') | net/http/http_transaction_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698