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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 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) 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 }; 131 };
132 132
133 } // namespace internal_cloud_print_helpers 133 } // namespace internal_cloud_print_helpers
134 134
135 using internal_cloud_print_helpers::CloudPrintDataSenderHelper; 135 using internal_cloud_print_helpers::CloudPrintDataSenderHelper;
136 using internal_cloud_print_helpers::CloudPrintDataSender; 136 using internal_cloud_print_helpers::CloudPrintDataSender;
137 137
138 class MockExternalHtmlDialogUI : public ExternalHtmlDialogUI { 138 class MockExternalHtmlDialogUI : public ExternalHtmlDialogUI {
139 public: 139 public:
140 MOCK_METHOD1(RenderViewCreated, 140 MOCK_METHOD1(RenderViewCreated,
141 void(RenderViewHost* render_view_host)); 141 void(content::RenderViewHost* render_view_host));
142 }; 142 };
143 143
144 class MockCloudPrintDataSenderHelper : public CloudPrintDataSenderHelper { 144 class MockCloudPrintDataSenderHelper : public CloudPrintDataSenderHelper {
145 public: 145 public:
146 // TODO(scottbyer): At some point this probably wants to use a 146 // TODO(scottbyer): At some point this probably wants to use a
147 // MockTabContents instead of NULL, and to pre-load it with a bunch 147 // MockTabContents instead of NULL, and to pre-load it with a bunch
148 // of expects/results. 148 // of expects/results.
149 MockCloudPrintDataSenderHelper() : CloudPrintDataSenderHelper(NULL) {} 149 MockCloudPrintDataSenderHelper() : CloudPrintDataSenderHelper(NULL) {}
150 MOCK_METHOD1(CallJavascriptFunction, void(const std::wstring&)); 150 MOCK_METHOD1(CallJavascriptFunction, void(const std::wstring&));
151 MOCK_METHOD2(CallJavascriptFunction, void(const std::wstring&, 151 MOCK_METHOD2(CallJavascriptFunction, void(const std::wstring&,
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 delegate_->GetWebUIMessageHandlers(&handlers); 353 delegate_->GetWebUIMessageHandlers(&handlers);
354 delegate_.reset(); 354 delegate_.reset();
355 EXPECT_THAT(mock_flow_handler_.get(), NotNull()); 355 EXPECT_THAT(mock_flow_handler_.get(), NotNull());
356 } 356 }
357 357
358 // Testing for ExternalHtmlDialogUI needs a mock TabContents, mock 358 // Testing for ExternalHtmlDialogUI needs a mock TabContents, mock
359 // CloudPrintHtmlDialogDelegate (provided through the mock 359 // CloudPrintHtmlDialogDelegate (provided through the mock
360 // tab_contents) 360 // tab_contents)
361 361
362 // 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.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698