Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: ui/views/corewm/tooltip_controller_test_helper.h

Issue 2615993002: Remove unnecessary spin in ToolTipController (Closed)
Patch Set: Fix unit tests Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ 5 #ifndef UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_
6 #define UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ 6 #define UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 16 matching lines...) Expand all
27 class TooltipControllerTestHelper { 27 class TooltipControllerTestHelper {
28 public: 28 public:
29 explicit TooltipControllerTestHelper(TooltipController* controller); 29 explicit TooltipControllerTestHelper(TooltipController* controller);
30 ~TooltipControllerTestHelper(); 30 ~TooltipControllerTestHelper();
31 31
32 TooltipController* controller() { return controller_; } 32 TooltipController* controller() { return controller_; }
33 33
34 // These are mostly cover methods for TooltipController private methods. 34 // These are mostly cover methods for TooltipController private methods.
35 base::string16 GetTooltipText(); 35 base::string16 GetTooltipText();
36 aura::Window* GetTooltipWindow(); 36 aura::Window* GetTooltipWindow();
37 void FireTooltipTimer(); 37 void UpdateIfRequired();
38 bool IsTooltipTimerRunning();
39 void FireTooltipShownTimer(); 38 void FireTooltipShownTimer();
40 bool IsTooltipShownTimerRunning(); 39 bool IsTooltipShownTimerRunning();
41 bool IsTooltipVisible(); 40 bool IsTooltipVisible();
42 41
43 private: 42 private:
44 TooltipController* controller_; 43 TooltipController* controller_;
45 44
46 DISALLOW_COPY_AND_ASSIGN(TooltipControllerTestHelper); 45 DISALLOW_COPY_AND_ASSIGN(TooltipControllerTestHelper);
47 }; 46 };
48 47
(...skipping 16 matching lines...) Expand all
65 64
66 DISALLOW_COPY_AND_ASSIGN(TooltipTestView); 65 DISALLOW_COPY_AND_ASSIGN(TooltipTestView);
67 }; 66 };
68 67
69 68
70 } // namespace test 69 } // namespace test
71 } // namespace corewm 70 } // namespace corewm
72 } // namespace views 71 } // namespace views
73 72
74 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_ 73 #endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698