chromium/chrome/browser/ui/views/payments/payment_handler_header_view_ui_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/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.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 "chrome/test/payments/payment_app_install_util.h"
#include "components/omnibox/browser/buildflags.h"
#include "components/payments/content/icon/icon_size.h"
#include "components/payments/core/features.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features_generated.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom.h"
#include "ui/views/controls/image_view.h"

namespace payments {
namespace {

class PaymentHandlerHeaderViewUITest : public PaymentRequestBrowserTestBase {};

IN_PROC_BROWSER_TEST_F(PaymentHandlerHeaderViewUITest,
                       HeaderHasCorrectDetails) {}

IN_PROC_BROWSER_TEST_F(PaymentHandlerHeaderViewUITest, HeaderWithoutIcon) {}

IN_PROC_BROWSER_TEST_F(PaymentHandlerHeaderViewUITest, CloseButtonPressed) {}

// Test that the header and dialog heights are consistent with when there is no
// title.
// Flakily failing: https://crbug.com/1430351
IN_PROC_BROWSER_TEST_F(PaymentHandlerHeaderViewUITest,
                       DISABLED_ConsistentHeaderHeight) {}

IN_PROC_BROWSER_TEST_F(PaymentHandlerHeaderViewUITest, LargeIcon) {}

}  // namespace
}  // namespace payments