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

Side by Side Diff: chrome/service/cloud_print/printer_job_handler_unittest.cc

Issue 147953009: Fallback to CDD/CJT if connector can't initialize XPS API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698