OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ | 5 #ifndef ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ |
6 #define ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ | 6 #define ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ |
7 | 7 |
8 #include "ash/common/palette_delegate.h" | 8 #include "ash/common/palette_delegate.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 | 12 |
13 // A simple test double for a PaletteDelegate. | 13 // A simple test double for a PaletteDelegate. |
14 class TestPaletteDelegate : public PaletteDelegate { | 14 class TestPaletteDelegate : public PaletteDelegate { |
15 public: | 15 public: |
16 TestPaletteDelegate(); | 16 TestPaletteDelegate(); |
17 ~TestPaletteDelegate() override; | 17 ~TestPaletteDelegate() override; |
18 | 18 |
19 int create_note_count() const { return create_note_count_; } | 19 int create_note_count() const { return create_note_count_; } |
20 | 20 |
21 int has_note_app_count() const { return has_note_app_count_; } | 21 int has_note_app_count() const { return has_note_app_count_; } |
22 | 22 |
| 23 bool partial_magnifier_state() const { return partial_magnifier_state_; } |
| 24 |
| 25 int take_screenshot_count() const { return take_screenshot_count_; } |
| 26 |
| 27 int take_partial_screenshot_count() const { |
| 28 return take_partial_screenshot_count_; |
| 29 } |
| 30 |
23 void set_has_note_app(bool has_note_app) { has_note_app_ = has_note_app; } | 31 void set_has_note_app(bool has_note_app) { has_note_app_ = has_note_app; } |
24 | 32 |
25 private: | 33 private: |
26 // PaletteDelegate: | 34 // PaletteDelegate: |
27 void CreateNote() override; | 35 void CreateNote() override; |
28 bool HasNoteApp() override; | 36 bool HasNoteApp() override; |
| 37 void SetPartialMagnifierState(bool enabled) override; |
| 38 void TakeScreenshot() override; |
| 39 void TakePartialScreenshot() override; |
29 | 40 |
30 bool has_note_app_ = false; | 41 bool has_note_app_ = false; |
31 int create_note_count_ = 0; | 42 int create_note_count_ = 0; |
32 int has_note_app_count_ = 0; | 43 int has_note_app_count_ = 0; |
| 44 bool partial_magnifier_state_ = false; |
| 45 int take_screenshot_count_ = 0; |
| 46 int take_partial_screenshot_count_ = 0; |
33 | 47 |
34 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); | 48 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); |
35 }; | 49 }; |
36 | 50 |
37 } // namespace ash | 51 } // namespace ash |
38 | 52 |
39 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ | 53 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ |
OLD | NEW |