| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #include "athena/home/home_card_gesture_manager.h" | 5 #include "athena/home/home_card_gesture_manager.h" |
| 6 | 6 |
| 7 #include "athena/home/home_card_constants.h" | 7 #include "athena/home/home_card_constants.h" |
| 8 #include "athena/home/public/home_card.h" | 8 #include "athena/home/public/home_card.h" |
| 9 #include "athena/test/athena_test_base.h" | 9 #include "athena/test/base/athena_test_base.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "ui/events/event.h" | 11 #include "ui/events/event.h" |
| 12 #include "ui/events/event_constants.h" | 12 #include "ui/events/event_constants.h" |
| 13 | 13 |
| 14 namespace athena { | 14 namespace athena { |
| 15 | 15 |
| 16 class HomeCardGestureManagerTest : public test::AthenaTestBase, | 16 class HomeCardGestureManagerTest : public test::AthenaTestBase, |
| 17 public HomeCardGestureManager::Delegate { | 17 public HomeCardGestureManager::Delegate { |
| 18 public: | 18 public: |
| 19 HomeCardGestureManagerTest() | 19 HomeCardGestureManagerTest() |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 ProcessGestureEvent(ui::ET_GESTURE_SCROLL_UPDATE, 1010); | 292 ProcessGestureEvent(ui::ET_GESTURE_SCROLL_UPDATE, 1010); |
| 293 ProcessGestureEvent(ui::ET_GESTURE_SCROLL_UPDATE, | 293 ProcessGestureEvent(ui::ET_GESTURE_SCROLL_UPDATE, |
| 294 screen_height() - kHomeCardHeight); | 294 screen_height() - kHomeCardHeight); |
| 295 ProcessFlingGesture(-150.0f); | 295 ProcessFlingGesture(-150.0f); |
| 296 EXPECT_EQ(1, GetEndCountAndReset()); | 296 EXPECT_EQ(1, GetEndCountAndReset()); |
| 297 EXPECT_EQ(HomeCard::VISIBLE_BOTTOM, final_state_); | 297 EXPECT_EQ(HomeCard::VISIBLE_BOTTOM, final_state_); |
| 298 EXPECT_TRUE(was_fling_); | 298 EXPECT_TRUE(was_fling_); |
| 299 } | 299 } |
| 300 | 300 |
| 301 } // namespace athena | 301 } // namespace athena |
| OLD | NEW |