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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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) 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/ui/cocoa/html_dialog_window_controller.h" 5 #import "chrome/browser/ui/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>
11 11
12 #import "base/mac/scoped_nsautorelease_pool.h" 12 #import "base/mac/scoped_nsautorelease_pool.h"
13 #include "base/sys_string_conversions.h" 13 #include "base/sys_string_conversions.h"
14 #include "chrome/browser/dom_ui/dom_ui.h" 14 #include "chrome/browser/dom_ui/dom_ui.h"
15 #include "chrome/browser/dom_ui/html_dialog_ui.h" 15 #include "chrome/browser/dom_ui/html_dialog_ui.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 17 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
18 #include "chrome/test/browser_with_test_window_test.h" 18 #include "chrome/test/browser_with_test_window_test.h"
19 #include "chrome/test/testing_profile.h" 19 #include "chrome/test/testing_profile.h"
20 #include "gfx/size.h"
21 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
22 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #include "ui/gfx/size.h"
24 24
25 namespace { 25 namespace {
26 26
27 class MockDelegate : public HtmlDialogUIDelegate { 27 class MockDelegate : public HtmlDialogUIDelegate {
28 public: 28 public:
29 MOCK_CONST_METHOD0(IsDialogModal, bool()); 29 MOCK_CONST_METHOD0(IsDialogModal, bool());
30 MOCK_CONST_METHOD0(GetDialogTitle, std::wstring()); 30 MOCK_CONST_METHOD0(GetDialogTitle, std::wstring());
31 MOCK_CONST_METHOD0(GetDialogContentURL, GURL()); 31 MOCK_CONST_METHOD0(GetDialogContentURL, GURL());
32 MOCK_CONST_METHOD1(GetDOMMessageHandlers, 32 MOCK_CONST_METHOD1(GetDOMMessageHandlers,
33 void(std::vector<DOMMessageHandler*>*)); 33 void(std::vector<DOMMessageHandler*>*));
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 HtmlDialogWindowController* html_dialog_window_controller = 86 HtmlDialogWindowController* html_dialog_window_controller =
87 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_ 87 [[HtmlDialogWindowController alloc] initWithDelegate:&delegate_
88 profile:profile()]; 88 profile:profile()];
89 89
90 [html_dialog_window_controller loadDialogContents]; 90 [html_dialog_window_controller loadDialogContents];
91 [html_dialog_window_controller showWindow:nil]; 91 [html_dialog_window_controller showWindow:nil];
92 [html_dialog_window_controller close]; 92 [html_dialog_window_controller close];
93 } 93 }
94 94
95 } // namespace 95 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/html_dialog_window_controller.mm ('k') | chrome/browser/ui/cocoa/instant_confirm_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698