blob: 5737213e474dbe13d1e7f8bc7d0f5b3a9eb8ff9a [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_TEST_MOCK_LAYER_CLIENT_H_
#define CC_TEST_MOCK_LAYER_CLIENT_H_
#include "base/macros.h"
#include "base/trace_event/trace_event_impl.h"
#include "cc/layers/layer_client.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace cc {
class MockLayerClient : public LayerClient {
public:
MockLayerClient();
~MockLayerClient() override;
MOCK_METHOD1(
TakeDebugInfo,
std::unique_ptr<base::trace_event::ConvertableToTraceFormat>(Layer*));
MOCK_METHOD0(didUpdateMainThreadScrollingReasons, void());
MOCK_METHOD1(didChangeScrollbarsHidden, void(bool));
private:
DISALLOW_COPY_AND_ASSIGN(MockLayerClient);
};
} // namespace cc
#endif // CC_TEST_MOCK_LAYER_CLIENT_H_