1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "ui/views/test/views_test_helper_mac.h" 6 7 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 8 #include "ui/views/test/event_generator_delegate_mac.h" 9 10 namespace views { 11 12 // static 13 ViewsTestHelper* ViewsTestHelper::Create(base::MessageLoopForUI* message_loop, 14 ui::ContextFactory* context_factory) { 15 return new ViewsTestHelperMac; 16 } 17 18 ViewsTestHelperMac::ViewsTestHelperMac() 19 : zero_duration_mode_(new ui::ScopedAnimationDurationScaleMode( 20 ui::ScopedAnimationDurationScaleMode::ZERO_DURATION)) { 21 test::InitializeMacEventGeneratorDelegate(); 22 } 23 24 ViewsTestHelperMac::~ViewsTestHelperMac() { 25 } 26 27 } // namespace views 28