Chromium Code Reviews| Index: chrome/browser/extensions/test_bookmark_app_helper.h |
| diff --git a/chrome/browser/extensions/test_bookmark_app_helper.h b/chrome/browser/extensions/test_bookmark_app_helper.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1a27eca442e85013e28f1a894d702c1483cb9700 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/test_bookmark_app_helper.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 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_TEST_BOOKMARK_APP_HELPER_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_TEST_BOOKMARK_APP_HELPER_H_ |
| + |
| +#include "chrome/browser/extensions/bookmark_app_helper.h" |
| + |
| +namespace extensions { |
| +namespace test { |
| + |
| +class TestBookmarkAppHelper : public extensions::BookmarkAppHelper { |
|
benwells
2017/06/06 03:31:50
What's the point of this class?
tapted
2017/06/06 07:44:12
Added a comment.
(OnDidGetManifest and OnIconsDow
|
| + public: |
| + TestBookmarkAppHelper(Profile* profile, |
| + WebApplicationInfo web_app_info, |
| + content::WebContents* contents) |
| + : BookmarkAppHelper(profile, web_app_info, contents) {} |
| + ~TestBookmarkAppHelper() override {} |
| + |
| + protected: |
| + // Allow subclasses to call these. |
| + using BookmarkAppHelper::OnDidGetManifest; |
| + using BookmarkAppHelper::OnIconsDownloaded; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(TestBookmarkAppHelper); |
| +}; |
| + |
| +} // namespace test |
| +} // namespace extensions |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_TEST_BOOKMARK_APP_HELPER_H_ |