#ifndef ASH_TEST_ASH_TEST_HELPER_H_
#define ASH_TEST_ASH_TEST_HELPER_H_
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
namespace aura {
class Window;
}
namespace base {
class MessageLoopForUI;
}
namespace ui {
class ScopedAnimationDurationScaleMode;
}
namespace wm {
class WMState;
}
namespace ash {
namespace test {
class TestScreenshotDelegate;
class TestShellDelegate;
class AshTestHelper {
public:
explicit AshTestHelper(base::MessageLoopForUI* message_loop);
~AshTestHelper();
void SetUp(bool start_session);
void TearDown();
aura::Window* CurrentContext();
void RunAllPendingInMessageLoop();
base::MessageLoopForUI* message_loop() { return message_loop_; }
TestShellDelegate* test_shell_delegate() { return test_shell_delegate_; }
void set_test_shell_delegate(TestShellDelegate* test_shell_delegate) {
test_shell_delegate_ = test_shell_delegate;
}
TestScreenshotDelegate* test_screenshot_delegate() {
return test_screenshot_delegate_;
}
private:
base::MessageLoopForUI* message_loop_;
TestShellDelegate* test_shell_delegate_;
scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
TestScreenshotDelegate* test_screenshot_delegate_;
scoped_ptr<wm::WMState> wm_state_;
bool dbus_thread_manager_initialized_;
DISALLOW_COPY_AND_ASSIGN(AshTestHelper);
};
}
}
#endif