blob: ac2d85cadf0ce00994cd588c5501064931fce4c1 [file] [log] [blame]
// Copyright 2018 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 CONTENT_PUBLIC_TEST_SCOPED_OVERSCROLL_MODES_H_
#define CONTENT_PUBLIC_TEST_SCOPED_OVERSCROLL_MODES_H_
#include "base/macros.h"
#include "content/public/browser/overscroll_configuration.h"
namespace content {
// Helper class to set the pull-to-refresh mode temporarily in tests.
class ScopedPullToRefreshMode {
public:
explicit ScopedPullToRefreshMode(OverscrollConfig::PullToRefreshMode mode);
~ScopedPullToRefreshMode();
private:
DISALLOW_COPY_AND_ASSIGN(ScopedPullToRefreshMode);
};
} // namespace content
#endif // CONTENT_PUBLIC_TEST_SCOPED_OVERSCROLL_MODES_H_