OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "net/reporting/reporting_uploader.h" | 5 #include "net/reporting/reporting_uploader.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
| 9 #include <utility> |
9 | 10 |
10 #include "base/bind.h" | 11 #include "base/bind.h" |
11 #include "base/callback.h" | 12 #include "base/callback.h" |
12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "net/cookies/cookie_store.h" | 14 #include "net/cookies/cookie_store.h" |
14 #include "net/cookies/cookie_store_test_callbacks.h" | 15 #include "net/cookies/cookie_store_test_callbacks.h" |
15 #include "net/http/http_status_code.h" | 16 #include "net/http/http_status_code.h" |
16 #include "net/test/embedded_test_server/embedded_test_server.h" | 17 #include "net/test/embedded_test_server/embedded_test_server.h" |
17 #include "net/test/embedded_test_server/http_request.h" | 18 #include "net/test/embedded_test_server/http_request.h" |
18 #include "net/test/embedded_test_server/http_response.h" | 19 #include "net/test/embedded_test_server/http_response.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 TestUploadCallback callback; | 317 TestUploadCallback callback; |
317 uploader_->StartUpload(server_.GetURL("/"), kUploadBody, | 318 uploader_->StartUpload(server_.GetURL("/"), kUploadBody, |
318 callback.callback()); | 319 callback.callback()); |
319 callback.WaitForCall(); | 320 callback.WaitForCall(); |
320 } | 321 } |
321 EXPECT_EQ(2, request_count); | 322 EXPECT_EQ(2, request_count); |
322 } | 323 } |
323 | 324 |
324 } // namespace | 325 } // namespace |
325 } // namespace net | 326 } // namespace net |
OLD | NEW |