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

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

Issue 402065: Made HtmlDialogWindowController on OS X use its own browser. (Closed)
Patch Set: synced to head Created 11 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
« no previous file with comments | « chrome/browser/cocoa/html_dialog_window_controller.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 EXPECT_CALL(delegate_, GetDialogTitle()) 73 EXPECT_CALL(delegate_, GetDialogTitle())
74 .WillOnce(Return(title_)); 74 .WillOnce(Return(title_));
75 EXPECT_CALL(delegate_, GetDialogSize(_)) 75 EXPECT_CALL(delegate_, GetDialogSize(_))
76 .WillOnce(SetArgumentPointee<0>(size_)); 76 .WillOnce(SetArgumentPointee<0>(size_));
77 EXPECT_CALL(delegate_, GetDialogContentURL()) 77 EXPECT_CALL(delegate_, GetDialogContentURL())
78 .WillOnce(Return(gurl_)); 78 .WillOnce(Return(gurl_));
79 EXPECT_CALL(delegate_, OnDialogClosed(_)) 79 EXPECT_CALL(delegate_, OnDialogClosed(_))
80 .Times(1); 80 .Times(1);
81 81
82 NSWindow* parent_window = cocoa_helper_.window(); 82 NSWindow* parentWindow = cocoa_helper_.window();
83 HtmlDialogWindowController* html_dialog_window_controller = 83 HtmlDialogWindowController* html_dialog_window_controller =
84 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_ 84 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_
85 parentWindow:parent_window 85 profile:profile()
86 browser:browser()]; 86 parentWindow:parentWindow];
87 87
88 [html_dialog_window_controller loadDialogContents]; 88 [html_dialog_window_controller loadDialogContents];
89 [html_dialog_window_controller showWindow:nil]; 89 [html_dialog_window_controller showWindow:nil];
90 [html_dialog_window_controller close]; 90 [html_dialog_window_controller close];
91 } 91 }
92 92
93 } // namespace 93 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/html_dialog_window_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698