1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ash / frame_throttler / mock_frame_throttling_observer.h [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_FRAME_THROTTLER_MOCK_FRAME_THROTTLING_OBSERVER_H_
#define ASH_FRAME_THROTTLER_MOCK_FRAME_THROTTLING_OBSERVER_H_
#include <vector>
#include "ash/frame_throttler/frame_throttling_observer.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace ash {
class MockFrameThrottlingObserver : public FrameThrottlingObserver {
public:
MockFrameThrottlingObserver();
~MockFrameThrottlingObserver() override;
MOCK_METHOD(void,
OnThrottlingStarted,
(const std::vector<aura::Window*>& windows, uint8_t fps),
(override));
MOCK_METHOD(void, OnThrottlingEnded, (), (override));
};
} // namespace ash
#endif // ASH_FRAME_THROTTLER_MOCK_FRAME_THROTTLING_OBSERVER_H_