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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/md5.h" | 6 #include "base/md5.h" |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 | 414 |
415 MOCK_METHOD3(GetJobDetails, bool(const std::string& printer_name, | 415 MOCK_METHOD3(GetJobDetails, bool(const std::string& printer_name, |
416 PlatformJobId job_id, | 416 PlatformJobId job_id, |
417 PrintJobDetails* job_details)); | 417 PrintJobDetails* job_details)); |
418 | 418 |
419 MOCK_METHOD0(CreatePrintServerWatcher, PrintSystem::PrintServerWatcher*()); | 419 MOCK_METHOD0(CreatePrintServerWatcher, PrintSystem::PrintServerWatcher*()); |
420 MOCK_METHOD1(CreatePrinterWatcher, | 420 MOCK_METHOD1(CreatePrinterWatcher, |
421 PrintSystem::PrinterWatcher*(const std::string& printer_name)); | 421 PrintSystem::PrinterWatcher*(const std::string& printer_name)); |
422 MOCK_METHOD0(CreateJobSpooler, PrintSystem::JobSpooler*()); | 422 MOCK_METHOD0(CreateJobSpooler, PrintSystem::JobSpooler*()); |
423 | 423 |
| 424 MOCK_METHOD0(UseCddAndCjt, bool()); |
424 MOCK_METHOD0(GetSupportedMimeTypes, std::string()); | 425 MOCK_METHOD0(GetSupportedMimeTypes, std::string()); |
425 | 426 |
426 friend class scoped_refptr<NiceMock<MockPrintSystem> >; | 427 friend class scoped_refptr<NiceMock<MockPrintSystem> >; |
427 friend class scoped_refptr<StrictMock<MockPrintSystem> >; | 428 friend class scoped_refptr<StrictMock<MockPrintSystem> >; |
428 friend class scoped_refptr<MockPrintSystem>; | 429 friend class scoped_refptr<MockPrintSystem>; |
429 | 430 |
430 protected: | 431 protected: |
431 virtual ~MockPrintSystem() {} | 432 virtual ~MockPrintSystem() {} |
432 | 433 |
433 private: | 434 private: |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 .WillOnce(InvokeWithoutArgs( | 817 .WillOnce(InvokeWithoutArgs( |
817 this, &PrinterJobHandlerTest::MakeJobFetchReturnNoJobs)); | 818 this, &PrinterJobHandlerTest::MakeJobFetchReturnNoJobs)); |
818 | 819 |
819 EXPECT_CALL(url_callback_, OnRequestCreate(TicketURI(1), _)) | 820 EXPECT_CALL(url_callback_, OnRequestCreate(TicketURI(1), _)) |
820 .Times(AtLeast(kNumRetriesBeforeAbandonJob)); | 821 .Times(AtLeast(kNumRetriesBeforeAbandonJob)); |
821 | 822 |
822 BeginTest(70); | 823 BeginTest(70); |
823 } | 824 } |
824 | 825 |
825 } // namespace cloud_print | 826 } // namespace cloud_print |
OLD | NEW |