#include "chrome/browser/tab_contents/form_interaction_tab_helper.h"
#include <memory>
#include <utility>
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/task/task_traits.h"
#include "base/test/bind.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "components/performance_manager/embedder/performance_manager_registry.h"
#include "components/performance_manager/public/performance_manager.h"
#include "components/performance_manager/test_support/graph_impl.h"
#include "components/performance_manager/test_support/mock_graphs.h"
#include "components/performance_manager/test_support/page_aggregator.h"
#include "components/performance_manager/test_support/test_harness_helper.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
class FormInteractionTabHelperTest : public ChromeRenderViewHostTestHarness { … };
TEST_F(FormInteractionTabHelperTest, HadFormInteractionSingleFrame) { … }
enum class ChildFrameType { … };
class FormInteractionTabHelperWithChildTest
: public FormInteractionTabHelperTest,
public testing::WithParamInterface<ChildFrameType> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(FormInteractionTabHelperWithChildTest, HadFormInteractionInChildFrame) { … }
TEST_P(FormInteractionTabHelperWithChildTest,
HadFormInteractionInBothMainAndChild) { … }