| Index: chrome/browser/extensions/extension_action_test_util.h
|
| diff --git a/chrome/browser/extensions/extension_action_test_util.h b/chrome/browser/extensions/extension_action_test_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..45afa000a15198081ca7b828c347740c63c277c8
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/extension_action_test_util.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_TEST_UTIL_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_TEST_UTIL_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| +namespace extensions {
|
| +namespace extension_action_test_util {
|
| +
|
| +// TODO(devlin): Should we also pull out methods to test browser actions?
|
| +
|
| +// Returns the number of page actions that are visible in the given
|
| +// |web_contents|.
|
| +size_t GetVisiblePageActionCount(content::WebContents* web_contents);
|
| +
|
| +// Returns the total number of page actions (visible or not) for the given
|
| +// |web_contents|.
|
| +size_t GetTotalPageActionCount(content::WebContents* web_contents);
|
| +
|
| +} // namespace extension_action_test_util
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_TEST_UTIL_H_
|
|
|