blob: 45789ae6aac61c11073a75d5ddb2034d16cf8035 [file] [log] [blame]
// Copyright (c) 2018 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_WEB_APPLICATIONS_TEST_WEB_APP_TEST_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_TEST_WEB_APP_TEST_H_
#include "base/macros.h"
#include "chrome/browser/web_applications/components/web_app_install_utils.h"
#include "chrome/common/web_application_info.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "third_party/skia/include/core/SkColor.h"
class GURL;
class SkBitmap;
namespace web_app {
class WebAppTest : public ChromeRenderViewHostTestHarness {
public:
WebAppTest();
~WebAppTest() override;
void SetUp() override;
static SkBitmap CreateSquareIcon(int size_px, SkColor solid_color);
static WebApplicationInfo::IconInfo GenerateIconInfo(const GURL& url,
int size_px,
SkColor solid_color);
static IconsMap GenerateIconsMapWithOneIcon(const GURL& icon_url,
int size_px,
SkColor solid_color);
private:
DISALLOW_COPY_AND_ASSIGN(WebAppTest);
};
} // namespace web_app
#endif // CHROME_BROWSER_WEB_APPLICATIONS_TEST_WEB_APP_TEST_H_