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

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

Issue 679273002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 private: 435 private:
436 scoped_refptr<MockJobSpooler> job_spooler_; 436 scoped_refptr<MockJobSpooler> job_spooler_;
437 scoped_refptr<MockPrinterWatcher> printer_watcher_; 437 scoped_refptr<MockPrinterWatcher> printer_watcher_;
438 scoped_refptr<MockPrintServerWatcher> print_server_watcher_; 438 scoped_refptr<MockPrintServerWatcher> print_server_watcher_;
439 }; 439 };
440 440
441 441
442 class PrinterJobHandlerTest : public ::testing::Test { 442 class PrinterJobHandlerTest : public ::testing::Test {
443 public: 443 public:
444 PrinterJobHandlerTest(); 444 PrinterJobHandlerTest();
445 virtual void SetUp() override; 445 void SetUp() override;
446 virtual void TearDown() override; 446 void TearDown() override;
447 void IdleOut(); 447 void IdleOut();
448 bool GetPrinterInfo(printing::PrinterBasicInfo* info); 448 bool GetPrinterInfo(printing::PrinterBasicInfo* info);
449 void SendCapsAndDefaults( 449 void SendCapsAndDefaults(
450 const std::string& printer_name, 450 const std::string& printer_name,
451 const PrintSystem::PrinterCapsAndDefaultsCallback& callback); 451 const PrintSystem::PrinterCapsAndDefaultsCallback& callback);
452 void AddMimeHeader(const GURL& url, net::FakeURLFetcher* fetcher); 452 void AddMimeHeader(const GURL& url, net::FakeURLFetcher* fetcher);
453 void AddTicketMimeHeader(const GURL& url, net::FakeURLFetcher* fetcher); 453 void AddTicketMimeHeader(const GURL& url, net::FakeURLFetcher* fetcher);
454 bool PostSpoolSuccess(); 454 bool PostSpoolSuccess();
455 void SetUpJobSuccessTest(int job_num); 455 void SetUpJobSuccessTest(int job_num);
456 void BeginTest(int timeout_seconds); 456 void BeginTest(int timeout_seconds);
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 .WillOnce(InvokeWithoutArgs( 818 .WillOnce(InvokeWithoutArgs(
819 this, &PrinterJobHandlerTest::MakeJobFetchReturnNoJobs)); 819 this, &PrinterJobHandlerTest::MakeJobFetchReturnNoJobs));
820 820
821 EXPECT_CALL(url_callback_, OnRequestCreate(TicketURI(1), _)) 821 EXPECT_CALL(url_callback_, OnRequestCreate(TicketURI(1), _))
822 .Times(AtLeast(kNumRetriesBeforeAbandonJob)); 822 .Times(AtLeast(kNumRetriesBeforeAbandonJob));
823 823
824 BeginTest(70); 824 BeginTest(70);
825 } 825 }
826 826
827 } // namespace cloud_print 827 } // namespace cloud_print
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698