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

Side by Side Diff: chrome/browser/cocoa/html_dialog_window_controller_unittest.mm

Issue 4110010: Cloud Print Dialog work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Direct paths for prefs. Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #import "chrome/browser/cocoa/html_dialog_window_controller.h" 5 #import "chrome/browser/cocoa/html_dialog_window_controller.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 17 matching lines...) Expand all
28 MOCK_CONST_METHOD0(IsDialogModal, bool()); 28 MOCK_CONST_METHOD0(IsDialogModal, bool());
29 MOCK_CONST_METHOD0(GetDialogTitle, std::wstring()); 29 MOCK_CONST_METHOD0(GetDialogTitle, std::wstring());
30 MOCK_CONST_METHOD0(GetDialogContentURL, GURL()); 30 MOCK_CONST_METHOD0(GetDialogContentURL, GURL());
31 MOCK_CONST_METHOD1(GetDOMMessageHandlers, 31 MOCK_CONST_METHOD1(GetDOMMessageHandlers,
32 void(std::vector<DOMMessageHandler*>*)); 32 void(std::vector<DOMMessageHandler*>*));
33 MOCK_CONST_METHOD1(GetDialogSize, void(gfx::Size*)); 33 MOCK_CONST_METHOD1(GetDialogSize, void(gfx::Size*));
34 MOCK_CONST_METHOD0(GetDialogArgs, std::string()); 34 MOCK_CONST_METHOD0(GetDialogArgs, std::string());
35 MOCK_METHOD1(OnDialogClosed, void(const std::string& json_retval)); 35 MOCK_METHOD1(OnDialogClosed, void(const std::string& json_retval));
36 MOCK_METHOD2(OnCloseContents, 36 MOCK_METHOD2(OnCloseContents,
37 void(TabContents* source, bool* out_close_dialog)); 37 void(TabContents* source, bool* out_close_dialog));
38 MOCK_CONST_METHOD0(ShouldShowDialogTitle, bool());
38 }; 39 };
39 40
40 class HtmlDialogWindowControllerTest : public BrowserWithTestWindowTest { 41 class HtmlDialogWindowControllerTest : public BrowserWithTestWindowTest {
41 public: 42 public:
42 virtual void SetUp() { 43 virtual void SetUp() {
43 BrowserWithTestWindowTest::SetUp(); 44 BrowserWithTestWindowTest::SetUp();
44 CocoaTest::BootstrapCocoa(); 45 CocoaTest::BootstrapCocoa();
45 title_ = L"Mock Title"; 46 title_ = L"Mock Title";
46 size_ = gfx::Size(50, 100); 47 size_ = gfx::Size(50, 100);
47 gurl_ = GURL(""); 48 gurl_ = GURL("");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 HtmlDialogWindowController* html_dialog_window_controller = 85 HtmlDialogWindowController* html_dialog_window_controller =
85 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_ 86 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_
86 profile:profile()]; 87 profile:profile()];
87 88
88 [html_dialog_window_controller loadDialogContents]; 89 [html_dialog_window_controller loadDialogContents];
89 [html_dialog_window_controller showWindow:nil]; 90 [html_dialog_window_controller showWindow:nil];
90 [html_dialog_window_controller close]; 91 [html_dialog_window_controller close];
91 } 92 }
92 93
93 } // namespace 94 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/html_dialog_window_controller.mm ('k') | chrome/browser/dom_ui/constrained_html_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698