OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TEST_MENU_MODEL_TEST_H_ | 5 #ifndef CHROME_TEST_BASE_MENU_MODEL_TEST_H_ |
6 #define CHROME_TEST_MENU_MODEL_TEST_H_ | 6 #define CHROME_TEST_BASE_MENU_MODEL_TEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/base/models/accelerator.h" | 9 #include "ui/base/models/accelerator.h" |
10 #include "ui/base/models/simple_menu_model.h" | 10 #include "ui/base/models/simple_menu_model.h" |
11 | 11 |
12 // A mix-in class to be used in addition to something that derrives from | 12 // A mix-in class to be used in addition to something that derrives from |
13 // testing::Test to provide some extra functionality for testing menu models. | 13 // testing::Test to provide some extra functionality for testing menu models. |
14 class MenuModelTest { | 14 class MenuModelTest { |
15 public: | 15 public: |
16 MenuModelTest() { } | 16 MenuModelTest() { } |
(...skipping 23 matching lines...) Expand all Loading... |
40 | 40 |
41 // Recursively checks the enabled state and executes a command on every item | 41 // Recursively checks the enabled state and executes a command on every item |
42 // that's not a separator or a submenu parent item. The returned count should | 42 // that's not a separator or a submenu parent item. The returned count should |
43 // match the number of times the delegate is called to ensure every item | 43 // match the number of times the delegate is called to ensure every item |
44 // works. | 44 // works. |
45 void CountEnabledExecutable(ui::MenuModel* model, int* count); | 45 void CountEnabledExecutable(ui::MenuModel* model, int* count); |
46 | 46 |
47 Delegate delegate_; | 47 Delegate delegate_; |
48 }; | 48 }; |
49 | 49 |
50 #endif // CHROME_TEST_MENU_MODEL_TEST_H_ | 50 #endif // CHROME_TEST_BASE_MENU_MODEL_TEST_H_ |
OLD | NEW |