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

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

Issue 9114062: Move chrome/browser/ui/webui/print_preview* to chrome/browser/ui/webui/print_preview/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 11 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_preview_tab_controller.h" 5 #include "chrome/browser/printing/print_preview_tab_controller.h"
6 #include "chrome/browser/printing/print_preview_unit_test_base.h" 6 #include "chrome/browser/printing/print_preview_unit_test_base.h"
7 #include "chrome/browser/printing/print_view_manager.h" 7 #include "chrome/browser/printing/print_view_manager.h"
8 #include "chrome/browser/tabs/tab_strip_model.h" 8 #include "chrome/browser/tabs/tab_strip_model.h"
9 #include "chrome/browser/ui/browser_list.h" 9 #include "chrome/browser/ui/browser_list.h"
10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
11 #include "chrome/browser/ui/webui/print_preview_ui.h" 11 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
12 #include "content/public/browser/navigation_details.h" 12 #include "content/public/browser/navigation_details.h"
13 #include "content/public/browser/notification_service.h" 13 #include "content/public/browser/notification_service.h"
14 #include "content/public/browser/notification_types.h" 14 #include "content/public/browser/notification_types.h"
15 #include "content/public/common/url_constants.h" 15 #include "content/public/common/url_constants.h"
16 16
17 // Test crashes on Aura due to initiator tab's native view having no parent. 17 // Test crashes on Aura due to initiator tab's native view having no parent.
18 // http://crbug.com/104284 18 // http://crbug.com/104284
19 #if defined(USE_AURA) 19 #if defined(USE_AURA)
20 #define MAYBE_GetOrCreatePreviewTab DISABLED_GetOrCreatePreviewTab 20 #define MAYBE_GetOrCreatePreviewTab DISABLED_GetOrCreatePreviewTab
21 #define MAYBE_MultiplePreviewTabs DISABLED_MultiplePreviewTabs 21 #define MAYBE_MultiplePreviewTabs DISABLED_MultiplePreviewTabs
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 tab_controller->EraseInitiatorTabInfo(preview_tab); 161 tab_controller->EraseInitiatorTabInfo(preview_tab);
162 162
163 // Get the print preview tab for initiator tab. 163 // Get the print preview tab for initiator tab.
164 TabContentsWrapper* new_preview_tab = 164 TabContentsWrapper* new_preview_tab =
165 tab_controller->GetOrCreatePreviewTab(initiator_tab); 165 tab_controller->GetOrCreatePreviewTab(initiator_tab);
166 166
167 // New preview tab is created. 167 // New preview tab is created.
168 EXPECT_EQ(1, browser()->tab_count()); 168 EXPECT_EQ(1, browser()->tab_count());
169 EXPECT_NE(new_preview_tab, preview_tab); 169 EXPECT_NE(new_preview_tab, preview_tab);
170 } 170 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller.cc ('k') | chrome/browser/printing/print_system_task_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698