blob: 1fa8c8956fb91c942a32b106756e5663c8d2444e [file] [log] [blame]
// Copyright 2014 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 UI_VIEWS_TEST_VIEWS_TEST_HELPER_MAC_H_
#define UI_VIEWS_TEST_VIEWS_TEST_HELPER_MAC_H_
#include "base/memory/scoped_ptr.h"
#include "ui/views/test/views_test_helper.h"
namespace ui {
class ScopedAnimationDurationScaleMode;
}
namespace views {
class ViewsTestHelperMac : public ViewsTestHelper {
public:
ViewsTestHelperMac();
~ViewsTestHelperMac() override;
// ViewsTestHelper:
void TearDown() override;
private:
// Disable animations during tests.
scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperMac);
};
} // namespace views
#endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_MAC_H_