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

Unified Diff: ui/views/corewm/tooltip_controller_test_helper.cc

Issue 2652833002: Remove infinite spin, make tooltip delay consistent (Closed)
Patch Set: Fix nits. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/corewm/tooltip_controller_test_helper.h ('k') | ui/views/corewm/tooltip_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/tooltip_controller_test_helper.cc
diff --git a/ui/views/corewm/tooltip_controller_test_helper.cc b/ui/views/corewm/tooltip_controller_test_helper.cc
index f96b08dc50a425ee416a2ea60704ed1b170096d1..45d940fe8f5a3458a816f08d94f93efa7d10a4ac 100644
--- a/ui/views/corewm/tooltip_controller_test_helper.cc
+++ b/ui/views/corewm/tooltip_controller_test_helper.cc
@@ -14,6 +14,7 @@ namespace test {
TooltipControllerTestHelper::TooltipControllerTestHelper(
TooltipController* controller)
: controller_(controller) {
+ controller_->DisableTooltipShowDelay();
}
TooltipControllerTestHelper::~TooltipControllerTestHelper() {
@@ -27,12 +28,8 @@ aura::Window* TooltipControllerTestHelper::GetTooltipWindow() {
return controller_->tooltip_window_;
}
-void TooltipControllerTestHelper::FireTooltipTimer() {
- controller_->TooltipTimerFired();
-}
-
-bool TooltipControllerTestHelper::IsTooltipTimerRunning() {
- return controller_->tooltip_timer_.IsRunning();
+void TooltipControllerTestHelper::UpdateIfRequired() {
+ controller_->UpdateIfRequired();
}
void TooltipControllerTestHelper::FireTooltipShownTimer() {
« no previous file with comments | « ui/views/corewm/tooltip_controller_test_helper.h ('k') | ui/views/corewm/tooltip_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698