summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_dialog_cloud_unittest.cc
diff options
context:
space:
mode:
authorscottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-03 16:06:56 +0000
committerscottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-03 16:06:56 +0000
commit9848c7e23c49fcb4736ed4453b6ae59bd5c810e6 (patch)
tree1d8b17b3fe35f06899082eae99d2d20c0b94fb78 /chrome/browser/printing/print_dialog_cloud_unittest.cc
parent84c2a6eada2bb8e3078beb85eba7dc99def01aad (diff)
downloadchromium_src-9848c7e23c49fcb4736ed4453b6ae59bd5c810e6.zip
chromium_src-9848c7e23c49fcb4736ed4453b6ae59bd5c810e6.tar.gz
chromium_src-9848c7e23c49fcb4736ed4453b6ae59bd5c810e6.tar.bz2
Fix cloud print job title.
Use the page title as the print job title for cloud printing. BUG=none TEST=none Review URL: http://codereview.chromium.org/2438004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing/print_dialog_cloud_unittest.cc')
-rw-r--r--chrome/browser/printing/print_dialog_cloud_unittest.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/printing/print_dialog_cloud_unittest.cc b/chrome/browser/printing/print_dialog_cloud_unittest.cc
index 1cee8c3..8fb0aa5 100644
--- a/chrome/browser/printing/print_dialog_cloud_unittest.cc
+++ b/chrome/browser/printing/print_dialog_cloud_unittest.cc
@@ -64,8 +64,9 @@ class MockCloudPrintFlowHandler
: public CloudPrintFlowHandler,
public base::SupportsWeakPtr<MockCloudPrintFlowHandler> {
public:
- explicit MockCloudPrintFlowHandler(const FilePath& path)
- : CloudPrintFlowHandler(path) {};
+ explicit MockCloudPrintFlowHandler(const FilePath& path,
+ const string16& title)
+ : CloudPrintFlowHandler(path, title) {}
MOCK_METHOD0(DestructorCalled, void());
MOCK_METHOD0(RegisterMessages, void());
MOCK_METHOD3(Observe,
@@ -171,9 +172,10 @@ class CloudPrintDataSenderTest : public testing::Test {
protected:
virtual void SetUp() {
+ string16 mock_job_title;
mock_helper_.reset(new MockCloudPrintDataSenderHelper);
print_data_sender_ =
- new CloudPrintDataSender(mock_helper_.get());
+ new CloudPrintDataSender(mock_helper_.get(), mock_job_title);
}
scoped_refptr<CloudPrintDataSender> print_data_sender_;
@@ -245,8 +247,9 @@ class CloudPrintHtmlDialogDelegateTest : public testing::Test {
protected:
virtual void SetUp() {
FilePath mock_path;
+ string16 mock_string;
MockCloudPrintFlowHandler* handler =
- new MockCloudPrintFlowHandler(mock_path);
+ new MockCloudPrintFlowHandler(mock_path, mock_string);
mock_flow_handler_ = handler->AsWeakPtr();
EXPECT_CALL(*mock_flow_handler_.get(), SetDialogDelegate(_));
EXPECT_CALL(*mock_flow_handler_.get(), SetDialogDelegate(NULL));