OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_TEST_UTIL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 namespace content { |
| 11 class WebContents; |
| 12 } |
| 13 |
| 14 namespace extensions { |
| 15 namespace extension_action_test_util { |
| 16 |
| 17 // TODO(devlin): Should we also pull out methods to test browser actions? |
| 18 |
| 19 // Returns the number of page actions that are visible in the given |
| 20 // |web_contents|. |
| 21 size_t GetVisiblePageActionCount(content::WebContents* web_contents); |
| 22 |
| 23 // Returns the total number of page actions (visible or not) for the given |
| 24 // |web_contents|. |
| 25 size_t GetTotalPageActionCount(content::WebContents* web_contents); |
| 26 |
| 27 } // namespace extension_action_test_util |
| 28 } // namespace extensions |
| 29 |
| 30 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_TEST_UTIL_H_ |
OLD | NEW |