OLD | NEW |
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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/memory/ref_counted_memory.h" | 7 #include "base/memory/ref_counted_memory.h" |
8 #include "chrome/browser/printing/print_preview_tab_controller.h" | 8 #include "chrome/browser/printing/print_preview_tab_controller.h" |
9 #include "chrome/browser/printing/print_preview_unit_test_base.h" | 9 #include "chrome/browser/printing/print_preview_unit_test_base.h" |
10 #include "chrome/browser/printing/print_view_manager.h" | 10 #include "chrome/browser/printing/print_view_manager.h" |
11 #include "chrome/browser/ui/browser_list.h" | 11 #include "chrome/browser/ui/browser_list.h" |
12 #include "chrome/browser/ui/constrained_window_tab_helper.h" | 12 #include "chrome/browser/ui/constrained_window_tab_helper.h" |
13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
14 #include "chrome/browser/ui/webui/print_preview_ui.h" | 14 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
16 #include "printing/print_job_constants.h" | 16 #include "printing/print_job_constants.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 const unsigned char blob1[] = | 20 const unsigned char blob1[] = |
21 "12346102356120394751634516591348710478123649165419234519234512349134"; | 21 "12346102356120394751634516591348710478123649165419234519234512349134"; |
22 | 22 |
23 size_t GetConstrainedWindowCount(TabContentsWrapper* tab) { | 23 size_t GetConstrainedWindowCount(TabContentsWrapper* tab) { |
24 return tab->constrained_window_tab_helper()->constrained_window_count(); | 24 return tab->constrained_window_tab_helper()->constrained_window_count(); |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 cancel = false; | 203 cancel = false; |
204 preview_ui->GetCurrentPrintPreviewStatus(preview_ui_addr, kFirstRequestId, | 204 preview_ui->GetCurrentPrintPreviewStatus(preview_ui_addr, kFirstRequestId, |
205 &cancel); | 205 &cancel); |
206 EXPECT_TRUE(cancel); | 206 EXPECT_TRUE(cancel); |
207 | 207 |
208 cancel = true; | 208 cancel = true; |
209 preview_ui->GetCurrentPrintPreviewStatus(preview_ui_addr, kSecondRequestId, | 209 preview_ui->GetCurrentPrintPreviewStatus(preview_ui_addr, kSecondRequestId, |
210 &cancel); | 210 &cancel); |
211 EXPECT_FALSE(cancel); | 211 EXPECT_FALSE(cancel); |
212 } | 212 } |
OLD | NEW |