chromium/chrome/browser/ui/views/performance_controls/test_support/memory_saver_unit_test_mixin.h

// 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.

#ifndef CHROME_BROWSER_UI_VIEWS_PERFORMANCE_CONTROLS_TEST_SUPPORT_MEMORY_SAVER_UNIT_TEST_MIXIN_H_
#define CHROME_BROWSER_UI_VIEWS_PERFORMANCE_CONTROLS_TEST_SUPPORT_MEMORY_SAVER_UNIT_TEST_MIXIN_H_

#include <concepts>

#include "chrome/browser/ui/performance_controls/memory_saver_chip_tab_helper.h"
#include "chrome/browser/ui/views/frame/test_with_browser_view.h"
#include "chrome/browser/ui/views/performance_controls/test_support/discard_mock_navigation_handle.h"
#include "content/public/test/mock_navigation_handle.h"

// Template to be used as a mixin class for memory saver tests extending
// TestWithBrowserView.
template <typename T>
  requires(std::derived_from<T, TestWithBrowserView>)
class MemorySaverUnitTestMixin : public T {};

#endif  // CHROME_BROWSER_UI_VIEWS_PERFORMANCE_CONTROLS_TEST_SUPPORT_MEMORY_SAVER_UNIT_TEST_MIXIN_H_