| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_MENU_MODEL_TEST_H_ | 5 #ifndef CHROME_TEST_MENU_MODEL_TEST_H_ |
| 6 #define CHROME_TEST_MENU_MODEL_TEST_H_ | 6 #define CHROME_TEST_MENU_MODEL_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/menus/simple_menu_model.h" | 9 #include "app/menus/simple_menu_model.h" |
| 10 | 10 |
| 11 // A mix-in class to be used in addition to something that derrives from | 11 // A mix-in class to be used in addition to something that derrives from |
| 12 // testing::Test to provide some extra functionality for testing menu models. | 12 // testing::Test to provide some extra functionality for testing menu models. |
| 13 class MenuModelTest { | 13 class MenuModelTest { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 39 // Recursively checks the enabled state and executes a command on every item | 39 // Recursively checks the enabled state and executes a command on every item |
| 40 // that's not a separator or a submenu parent item. The returned count should | 40 // that's not a separator or a submenu parent item. The returned count should |
| 41 // match the number of times the delegate is called to ensure every item | 41 // match the number of times the delegate is called to ensure every item |
| 42 // works. | 42 // works. |
| 43 void CountEnabledExecutable(menus::MenuModel* model, int* count); | 43 void CountEnabledExecutable(menus::MenuModel* model, int* count); |
| 44 | 44 |
| 45 Delegate delegate_; | 45 Delegate delegate_; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // CHROME_TEST_MENU_MODEL_TEST_H_ | 48 #endif // CHROME_TEST_MENU_MODEL_TEST_H_ |
| OLD | NEW |