OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/service/cloud_print/printer_job_handler.h" | 5 #include "chrome/service/cloud_print/printer_job_handler.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/md5.h" | 11 #include "base/md5.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "chrome/common/cloud_print/cloud_print_constants.h" | 17 #include "chrome/common/cloud_print/cloud_print_constants.h" |
18 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" | 18 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
19 #include "chrome/service/cloud_print/cloud_print_token_store.h" | 19 #include "chrome/service/cloud_print/cloud_print_token_store.h" |
20 #include "chrome/service/cloud_print/print_system.h" | 20 #include "chrome/service/cloud_print/print_system.h" |
21 #include "net/http/http_response_headers.h" | 21 #include "net/http/http_response_headers.h" |
22 #include "net/http/http_status_code.h" | 22 #include "net/http/http_status_code.h" |
23 #include "net/url_request/test_url_fetcher_factory.h" | 23 #include "net/url_request/test_url_fetcher_factory.h" |
24 #include "net/url_request/url_request_status.h" | 24 #include "net/url_request/url_request_status.h" |
25 #include "net/url_request/url_request_test_util.h" | 25 #include "net/url_request/url_request_test_util.h" |
26 #include "printing/backend/print_backend.h" | 26 #include "printing/backend/print_backend.h" |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 .WillOnce(InvokeWithoutArgs( | 820 .WillOnce(InvokeWithoutArgs( |
821 this, &PrinterJobHandlerTest::MakeJobFetchReturnNoJobs)); | 821 this, &PrinterJobHandlerTest::MakeJobFetchReturnNoJobs)); |
822 | 822 |
823 EXPECT_CALL(url_callback_, OnRequestCreate(TicketURI(1), _)) | 823 EXPECT_CALL(url_callback_, OnRequestCreate(TicketURI(1), _)) |
824 .Times(AtLeast(kNumRetriesBeforeAbandonJob)); | 824 .Times(AtLeast(kNumRetriesBeforeAbandonJob)); |
825 | 825 |
826 BeginTest(70); | 826 BeginTest(70); |
827 } | 827 } |
828 | 828 |
829 } // namespace cloud_print | 829 } // namespace cloud_print |
OLD | NEW |