chromium/chrome/browser/ui/views/performance_controls/memory_saver_exclusion_list_browsertest.cc

// Copyright 2023 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/strings/string_util.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/values.h"
#include "chrome/browser/performance_manager/public/user_tuning/user_performance_tuning_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/resource_coordinator/tab_lifecycle_unit_source.h"
#include "chrome/browser/resource_coordinator/time.h"
#include "chrome/browser/resource_coordinator/utils.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/performance_controls/test_support/memory_saver_browser_test_mixin.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/performance_manager/public/features.h"
#include "components/performance_manager/public/user_tuning/prefs.h"
#include "components/prefs/pref_service.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"

namespace {
const char kWWWExampleURL[] =;
const char kExampleURL[] =;
const char kSubDomainURL[] =;
const char kPathWithoutQuery[] =;
const char kPathWithQuery[] =;
}  // namespace

class MemorySaverExclusionListBrowserTest
    : public MemorySaverBrowserTestMixin<InProcessBrowserTest> {};

IN_PROC_BROWSER_TEST_F(MemorySaverExclusionListBrowserTest,
                       ExclusionListMatchesHost) {}

IN_PROC_BROWSER_TEST_F(MemorySaverExclusionListBrowserTest,
                       ExclusionListMatchesHostExactly) {}

IN_PROC_BROWSER_TEST_F(MemorySaverExclusionListBrowserTest,
                       ExclusionListMatchesSubdirectories) {}

IN_PROC_BROWSER_TEST_F(MemorySaverExclusionListBrowserTest,
                       ExclusionListMatchesSchemeWildCards) {}

IN_PROC_BROWSER_TEST_F(MemorySaverExclusionListBrowserTest,
                       ExclusionListMatchesQueryParamWildCards) {}

IN_PROC_BROWSER_TEST_F(MemorySaverExclusionListBrowserTest,
                       ExclusionListMatchesAllSitesWildCards) {}

IN_PROC_BROWSER_TEST_F(MemorySaverExclusionListBrowserTest,
                       ExclusionListMatchesPort) {}