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

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

Issue 7461136: Convert HtmlDialogUIDelegate::GetDialogTitle() to string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void(CloudPrintHtmlDialogDelegate* delegate)); 96 void(CloudPrintHtmlDialogDelegate* delegate));
97 MOCK_METHOD0(CreateCloudPrintDataSender, 97 MOCK_METHOD0(CreateCloudPrintDataSender,
98 scoped_refptr<CloudPrintDataSender>()); 98 scoped_refptr<CloudPrintDataSender>());
99 }; 99 };
100 100
101 class MockCloudPrintHtmlDialogDelegate : public CloudPrintHtmlDialogDelegate { 101 class MockCloudPrintHtmlDialogDelegate : public CloudPrintHtmlDialogDelegate {
102 public: 102 public:
103 MOCK_CONST_METHOD0(IsDialogModal, 103 MOCK_CONST_METHOD0(IsDialogModal,
104 bool()); 104 bool());
105 MOCK_CONST_METHOD0(GetDialogTitle, 105 MOCK_CONST_METHOD0(GetDialogTitle,
106 std::wstring()); 106 string16());
107 MOCK_CONST_METHOD0(GetDialogContentURL, 107 MOCK_CONST_METHOD0(GetDialogContentURL,
108 GURL()); 108 GURL());
109 MOCK_CONST_METHOD1(GetWebUIMessageHandlers, 109 MOCK_CONST_METHOD1(GetWebUIMessageHandlers,
110 void(std::vector<WebUIMessageHandler*>* handlers)); 110 void(std::vector<WebUIMessageHandler*>* handlers));
111 MOCK_CONST_METHOD1(GetDialogSize, 111 MOCK_CONST_METHOD1(GetDialogSize,
112 void(gfx::Size* size)); 112 void(gfx::Size* size));
113 MOCK_CONST_METHOD0(GetDialogArgs, 113 MOCK_CONST_METHOD0(GetDialogArgs,
114 std::string()); 114 std::string());
115 MOCK_METHOD1(OnDialogClosed, 115 MOCK_METHOD1(OnDialogClosed,
116 void(const std::string& json_retval)); 116 void(const std::string& json_retval));
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 delegate_->GetWebUIMessageHandlers(&handlers); 339 delegate_->GetWebUIMessageHandlers(&handlers);
340 delegate_.reset(); 340 delegate_.reset();
341 EXPECT_THAT(mock_flow_handler_.get(), NotNull()); 341 EXPECT_THAT(mock_flow_handler_.get(), NotNull());
342 } 342 }
343 343
344 // Testing for ExternalHtmlDialogUI needs a mock TabContents, mock 344 // Testing for ExternalHtmlDialogUI needs a mock TabContents, mock
345 // CloudPrintHtmlDialogDelegate (provided through the mock 345 // CloudPrintHtmlDialogDelegate (provided through the mock
346 // tab_contents) 346 // tab_contents)
347 347
348 // Testing for PrintDialogCloud needs a mock Browser. 348 // Testing for PrintDialogCloud needs a mock Browser.
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud_internal.h ('k') | chrome/browser/ui/cocoa/html_dialog_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698