chromium/chrome/browser/performance_manager/user_tuning/performance_detection_manager_browsertest.cc

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

#include "chrome/browser/performance_manager/public/user_tuning/performance_detection_manager.h"

#include <memory>
#include <optional>
#include <vector>

#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback_forward.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_enums.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/performance_manager/public/features.h"
#include "components/performance_manager/public/resource_attribution/page_context.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"

namespace performance_manager::user_tuning {

class ActionableTabWaiter
    : public PerformanceDetectionManager::ActionableTabsObserver {};

class PerformanceDetectionManagerBrowserTest : public InProcessBrowserTest {};

IN_PROC_BROWSER_TEST_F(PerformanceDetectionManagerBrowserTest,
                       DiscardMultiplePages) {}

IN_PROC_BROWSER_TEST_F(PerformanceDetectionManagerBrowserTest,
                       DiscardEligibleAndClosedPage) {}

IN_PROC_BROWSER_TEST_F(PerformanceDetectionManagerBrowserTest,
                       DiscardAllClosedPages) {}

IN_PROC_BROWSER_TEST_F(PerformanceDetectionManagerBrowserTest,
                       PreventDiscardActiveTab) {}

class PerformanceInterventionDemoModeTest
    : public PerformanceDetectionManagerBrowserTest {};

IN_PROC_BROWSER_TEST_F(PerformanceInterventionDemoModeTest,
                       ForceCpuRefreshNotifyObservers) {}

}  // namespace performance_manager::user_tuning