chromium/chrome/browser/page_load_metrics/observers/formfill_page_load_metrics_observer_browsertest.cc

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

#include "build/buildflag.h"
#include "chrome/browser/browsing_data/chrome_browsing_data_remover_constants.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/autofill/content/browser/content_autofill_driver.h"
#include "components/autofill/content/browser/test_autofill_manager_injector.h"
#include "components/autofill/core/browser/browser_autofill_manager.h"
#include "components/autofill/core/browser/test_autofill_manager_waiter.h"
#include "content/public/browser/browsing_data_remover.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/test/back_forward_cache_util.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browsing_data_remover_test_util.h"
#include "net/dns/mock_host_resolver.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom.h"
#include "url/url_constants.h"

namespace {

const char kEditPhoneAndEmailFieldScript[] =;

}  // namespace

class FormfillPageLoadMetricsObserverBrowserTest : public InProcessBrowserTest {};

IN_PROC_BROWSER_TEST_F(FormfillPageLoadMetricsObserverBrowserTest,
                       UserDataFieldFilledUseCounter) {}

// TODO(crbug.com/40242092): test is flaky across platforms.
IN_PROC_BROWSER_TEST_F(FormfillPageLoadMetricsObserverBrowserTest,
                       DISABLED_UserDataFieldFilledPreviouslyUseCounter) {}

#if BUILDFLAG(IS_LINUX)
#define MAYBE_ClearBrowsingData
#else
#define MAYBE_ClearBrowsingData
#endif
IN_PROC_BROWSER_TEST_F(FormfillPageLoadMetricsObserverBrowserTest,
                       MAYBE_ClearBrowsingData) {}