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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud_unittest.cc

Issue 10448066: Move the web dialogs code to src/ui/web_dialogs from src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/printing/print_dialog_cloud.h" 5 #include "chrome/browser/printing/print_dialog_cloud.h"
6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h"
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 using content::WebUIMessageHandler; 34 using content::WebUIMessageHandler;
35 using testing::A; 35 using testing::A;
36 using testing::AtLeast; 36 using testing::AtLeast;
37 using testing::Eq; 37 using testing::Eq;
38 using testing::HasSubstr; 38 using testing::HasSubstr;
39 using testing::IsNull; 39 using testing::IsNull;
40 using testing::NotNull; 40 using testing::NotNull;
41 using testing::Return; 41 using testing::Return;
42 using testing::StrEq; 42 using testing::StrEq;
43 using testing::_; 43 using testing::_;
44 using ui::ExternalWebDialogUI;
44 45
45 static const char* const kPDFTestFile = "printing/cloud_print_unittest.pdf"; 46 static const char* const kPDFTestFile = "printing/cloud_print_unittest.pdf";
46 static const char* const kEmptyPDFTestFile = 47 static const char* const kEmptyPDFTestFile =
47 "printing/cloud_print_emptytest.pdf"; 48 "printing/cloud_print_emptytest.pdf";
48 static const char* const kMockJobTitle = "Mock Job Title"; 49 static const char* const kMockJobTitle = "Mock Job Title";
49 static const char* const kMockPrintTicket = "Resolution=300"; 50 static const char* const kMockPrintTicket = "Resolution=300";
50 51
51 52
52 FilePath GetTestDataFileName() { 53 FilePath GetTestDataFileName() {
53 FilePath test_data_directory; 54 FilePath test_data_directory;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 delegate_->GetWebUIMessageHandlers(&handlers); 353 delegate_->GetWebUIMessageHandlers(&handlers);
353 delegate_.reset(); 354 delegate_.reset();
354 EXPECT_THAT(mock_flow_handler_.get(), NotNull()); 355 EXPECT_THAT(mock_flow_handler_.get(), NotNull());
355 } 356 }
356 357
357 // Testing for ExternalWebDialogUI needs a mock WebContents, mock 358 // Testing for ExternalWebDialogUI needs a mock WebContents, mock
358 // CloudPrintWebDialogDelegate (provided through the mock 359 // CloudPrintWebDialogDelegate (provided through the mock
359 // tab_contents) 360 // tab_contents)
360 361
361 // Testing for PrintDialogCloud needs a mock Browser. 362 // Testing for PrintDialogCloud needs a mock Browser.
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud_internal.h ('k') | chrome/browser/printing/print_preview_tab_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698