OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 "chrome/browser/chromeos/policy/upload_job.h" | 5 #include "chrome/browser/chromeos/policy/upload_job.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <queue> | 9 #include <queue> |
8 #include <set> | 10 #include <set> |
9 #include <utility> | 11 #include <utility> |
10 | 12 |
11 #include "base/bind.h" | 13 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
13 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/macros.h" |
14 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
16 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
17 #include "base/time/time.h" | 20 #include "base/time/time.h" |
18 #include "chrome/browser/chromeos/policy/upload_job_impl.h" | 21 #include "chrome/browser/chromeos/policy/upload_job_impl.h" |
19 #include "content/public/test/test_browser_thread_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
20 #include "google_apis/gaia/fake_oauth2_token_service.h" | 23 #include "google_apis/gaia/fake_oauth2_token_service.h" |
21 #include "google_apis/gaia/google_service_auth_error.h" | 24 #include "google_apis/gaia/google_service_auth_error.h" |
22 #include "net/http/http_status_code.h" | 25 #include "net/http/http_status_code.h" |
23 #include "net/test/embedded_test_server/embedded_test_server.h" | 26 #include "net/test/embedded_test_server/embedded_test_server.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 "customfield2: CUSTOM2\r\n" | 336 "customfield2: CUSTOM2\r\n" |
334 "\r\n" | 337 "\r\n" |
335 "**||--||PAYLOAD2||--||**\r\n--" | 338 "**||--||PAYLOAD2||--||**\r\n--" |
336 "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA--\r\n"); | 339 "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA--\r\n"); |
337 | 340 |
338 upload_job->Start(); | 341 upload_job->Start(); |
339 run_loop_.Run(); | 342 run_loop_.Run(); |
340 } | 343 } |
341 | 344 |
342 } // namespace policy | 345 } // namespace policy |
OLD | NEW |