chromium/chrome/browser/ui/views/payments/payment_handler_icon_refetch_browsertest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h"
#include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h"
#include "components/payments/content/service_worker_payment_app_finder.h"
#include "components/payments/core/features.h"
#include "components/payments/core/test_payment_manifest_downloader.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace payments {

// Test the icon-refetch logic for service worker payment apps that have missing
// icons.
//
// Tested both with and without the kPaymentHandlerAlwaysRefreshIcon feature;
// the behavior should not change either way for missing icon refetches.
class PaymentHandlerIconRefetchTest : public PaymentRequestBrowserTestBase,
                                      public testing::WithParamInterface<bool> {};

IN_PROC_BROWSER_TEST_P(PaymentHandlerIconRefetchTest, RefetchMissingIcon) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace payments