OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_ | |
6 #define CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
10 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" | |
11 | |
12 // Test mouse watcher for simulating mouse movements in tests. | |
13 class TestPanelMouseWatcher : public PanelMouseWatcher { | |
14 public: | |
15 TestPanelMouseWatcher() : started_(false) { } | |
16 ~TestPanelMouseWatcher() { | |
jianli
2011/11/30 19:27:01
virtual.
jennb
2011/11/30 19:55:12
Done and created separate .cc file to make clang h
| |
17 EXPECT_FALSE(IsActive()); | |
18 } | |
19 private: | |
20 virtual void Start() OVERRIDE { started_ = true; } | |
21 virtual void Stop() OVERRIDE { started_ = false; } | |
22 virtual bool IsActive() const OVERRIDE { | |
23 return started_; | |
24 } | |
25 bool started_; | |
26 DISALLOW_COPY_AND_ASSIGN(TestPanelMouseWatcher); | |
27 }; | |
28 | |
29 #endif // CHROME_BROWSER_UI_PANELS_TEST_PANEL_MOUSE_WATCHER_H_ | |
OLD | NEW |