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 "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "chrome/browser/printing/print_preview_dialog_controller.h" | 9 #include "chrome/browser/printing/print_preview_dialog_controller.h" |
10 #include "chrome/browser/printing/print_preview_test.h" | 10 #include "chrome/browser/printing/print_preview_test.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 } | 40 } |
41 | 41 |
42 } // namespace | 42 } // namespace |
43 | 43 |
44 class PrintPreviewUIUnitTest : public PrintPreviewTest { | 44 class PrintPreviewUIUnitTest : public PrintPreviewTest { |
45 public: | 45 public: |
46 PrintPreviewUIUnitTest(); | 46 PrintPreviewUIUnitTest(); |
47 virtual ~PrintPreviewUIUnitTest(); | 47 virtual ~PrintPreviewUIUnitTest(); |
48 | 48 |
49 protected: | 49 protected: |
50 virtual void SetUp() OVERRIDE; | 50 virtual void SetUp() override; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUIUnitTest); | 52 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUIUnitTest); |
53 }; | 53 }; |
54 | 54 |
55 PrintPreviewUIUnitTest::PrintPreviewUIUnitTest() {} | 55 PrintPreviewUIUnitTest::PrintPreviewUIUnitTest() {} |
56 PrintPreviewUIUnitTest::~PrintPreviewUIUnitTest() {} | 56 PrintPreviewUIUnitTest::~PrintPreviewUIUnitTest() {} |
57 | 57 |
58 void PrintPreviewUIUnitTest::SetUp() { | 58 void PrintPreviewUIUnitTest::SetUp() { |
59 PrintPreviewTest::SetUp(); | 59 PrintPreviewTest::SetUp(); |
60 | 60 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 cancel = false; | 224 cancel = false; |
225 preview_ui->GetCurrentPrintPreviewStatus(preview_ui_addr, kFirstRequestId, | 225 preview_ui->GetCurrentPrintPreviewStatus(preview_ui_addr, kFirstRequestId, |
226 &cancel); | 226 &cancel); |
227 EXPECT_TRUE(cancel); | 227 EXPECT_TRUE(cancel); |
228 | 228 |
229 cancel = true; | 229 cancel = true; |
230 preview_ui->GetCurrentPrintPreviewStatus(preview_ui_addr, kSecondRequestId, | 230 preview_ui->GetCurrentPrintPreviewStatus(preview_ui_addr, kSecondRequestId, |
231 &cancel); | 231 &cancel); |
232 EXPECT_FALSE(cancel); | 232 EXPECT_FALSE(cancel); |
233 } | 233 } |
OLD | NEW |