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 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_UNIT_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_UNIT_TEST_BASE_H_ |
6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_UNIT_TEST_BASE_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_UNIT_TEST_BASE_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/test/base/browser_with_test_window_test.h" | 9 #include "chrome/test/base/browser_with_test_window_test.h" |
11 | 10 |
12 class TestingPrefService; | 11 class TestingPrefService; |
13 | 12 |
14 class PrintPreviewUnitTestBase : public BrowserWithTestWindowTest { | 13 class PrintPreviewUnitTestBase : public BrowserWithTestWindowTest { |
15 public: | 14 public: |
16 PrintPreviewUnitTestBase(); | 15 PrintPreviewUnitTestBase(); |
17 virtual ~PrintPreviewUnitTestBase(); | 16 virtual ~PrintPreviewUnitTestBase(); |
18 | 17 |
19 protected: | 18 protected: |
20 virtual void SetUp() OVERRIDE; | 19 virtual void SetUp() OVERRIDE; |
21 virtual void TearDown() OVERRIDE; | 20 virtual void TearDown() OVERRIDE; |
22 | 21 |
23 private: | 22 private: |
24 scoped_ptr<TestingPrefService> testing_local_state_; | 23 scoped_ptr<TestingPrefService> testing_local_state_; |
25 }; | 24 }; |
26 | 25 |
27 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_UNIT_TEST_BASE_H_ | 26 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_UNIT_TEST_BASE_H_ |
OLD | NEW |