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

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

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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
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.h" 9 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 20 matching lines...) Expand all
31 using ::testing::NiceMock; 31 using ::testing::NiceMock;
32 using ::testing::StrictMock; 32 using ::testing::StrictMock;
33 using ::testing::Invoke; 33 using ::testing::Invoke;
34 using ::testing::SetArgPointee; 34 using ::testing::SetArgPointee;
35 using ::testing::InvokeWithoutArgs; 35 using ::testing::InvokeWithoutArgs;
36 36
37 namespace cloud_print { 37 namespace cloud_print {
38 38
39 namespace { 39 namespace {
40 40
41 using base::StringPrintf;
42
41 const char kExampleCloudPrintServerURL[] = "https://www.google.com/cloudprint/"; 43 const char kExampleCloudPrintServerURL[] = "https://www.google.com/cloudprint/";
42 44
43 const char kExamplePrintTicket[] = "{\"MediaType\":\"plain\"," 45 const char kExamplePrintTicket[] = "{\"MediaType\":\"plain\","
44 "\"Resolution\":\"300x300dpi\",\"PageRegion\":\"Letter\"," 46 "\"Resolution\":\"300x300dpi\",\"PageRegion\":\"Letter\","
45 "\"InputSlot\":\"auto\",\"PageSize\":\"Letter\",\"EconoMode\":\"off\"}"; 47 "\"InputSlot\":\"auto\",\"PageSize\":\"Letter\",\"EconoMode\":\"off\"}";
46 48
47 49
48 // The fillowing constants will all be constructed with StringPrintf. The 50 // The fillowing constants will all be constructed with StringPrintf. The
49 // following types of parameters are possible: 51 // following types of parameters are possible:
50 // job number(int): ID # of job from given job list. All job IDs follow the 52 // job number(int): ID # of job from given job list. All job IDs follow the
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 .WillOnce(InvokeWithoutArgs( 778 .WillOnce(InvokeWithoutArgs(
777 this, &PrinterJobHandlerTest::MakeJobFetchReturnNoJobs)); 779 this, &PrinterJobHandlerTest::MakeJobFetchReturnNoJobs));
778 780
779 EXPECT_CALL(url_callback_, OnRequestCreate(GURL(TicketURI(1)), _)) 781 EXPECT_CALL(url_callback_, OnRequestCreate(GURL(TicketURI(1)), _))
780 .Times(AtLeast(kNumRetriesBeforeAbandonJob)); 782 .Times(AtLeast(kNumRetriesBeforeAbandonJob));
781 783
782 BeginTest(70); 784 BeginTest(70);
783 } 785 }
784 786
785 } // namespace cloud_print 787 } // namespace cloud_print
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698