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

Side by Side Diff: chrome/browser/ui/tab_modal_confirm_dialog_browsertest.h

Issue 10528002: TabContentsWrapper -> TabContents, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 #ifndef CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_BROWSERTEST_H_ 6 #define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_BROWSERTEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
10 #include "content/public/test/test_browser_thread.h" 10 #include "content/public/test/test_browser_thread.h"
11 11
12 #if defined(OS_MACOSX) 12 #if defined(OS_MACOSX)
13 class TabModalConfirmDialogMac; 13 class TabModalConfirmDialogMac;
14 typedef TabModalConfirmDialogMac TabModalConfirmDialog; 14 typedef TabModalConfirmDialogMac TabModalConfirmDialog;
15 #elif defined(TOOLKIT_GTK) 15 #elif defined(TOOLKIT_GTK)
16 #include "chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.h" 16 #include "chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.h"
17 typedef TabModalConfirmDialogGtk TabModalConfirmDialog; 17 typedef TabModalConfirmDialogGtk TabModalConfirmDialog;
18 #else 18 #else
19 #include "chrome/browser/ui/views/tab_modal_confirm_dialog_views.h" 19 #include "chrome/browser/ui/views/tab_modal_confirm_dialog_views.h"
20 typedef TabModalConfirmDialogViews TabModalConfirmDialog; 20 typedef TabModalConfirmDialogViews TabModalConfirmDialog;
21 #endif 21 #endif
22 22
23 class MockTabModalConfirmDialogDelegate; 23 class MockTabModalConfirmDialogDelegate;
24 class TabContentsWrapper; 24 class TabContents;
25 typedef TabContents TabContentsWrapper;
25 class TabModalConfirmDialogDelegate; 26 class TabModalConfirmDialogDelegate;
26 27
27 class TabModalConfirmDialogTest : public InProcessBrowserTest { 28 class TabModalConfirmDialogTest : public InProcessBrowserTest {
28 public: 29 public:
29 TabModalConfirmDialogTest(); 30 TabModalConfirmDialogTest();
30 31
31 virtual void SetUpOnMainThread() OVERRIDE; 32 virtual void SetUpOnMainThread() OVERRIDE;
32 virtual void CleanUpOnMainThread() OVERRIDE; 33 virtual void CleanUpOnMainThread() OVERRIDE;
33 34
34 protected: 35 protected:
35 void CloseDialog(bool accept); 36 void CloseDialog(bool accept);
36 37
37 // Owned by |dialog_|. 38 // Owned by |dialog_|.
38 MockTabModalConfirmDialogDelegate* delegate_; 39 MockTabModalConfirmDialogDelegate* delegate_;
39 40
40 private: 41 private:
41 TabModalConfirmDialog* CreateTestDialog( 42 TabModalConfirmDialog* CreateTestDialog(
42 TabModalConfirmDialogDelegate* delegate, TabContentsWrapper* wrapper); 43 TabModalConfirmDialogDelegate* delegate, TabContentsWrapper* wrapper);
43 44
44 // Deletes itself. 45 // Deletes itself.
45 TabModalConfirmDialog* dialog_; 46 TabModalConfirmDialog* dialog_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogTest); 48 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogTest);
48 }; 49 };
49 50
50 #endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_BROWSERTEST_H_ 51 #endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h ('k') | chrome/browser/ui/tabs/tab_strip_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698