| 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "ash/display/display_info.h" | 8 #include "ash/common/display/display_info.h" |
| 9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
| 10 #include "ash/test/display_manager_test_api.h" | 10 #include "ash/test/display_manager_test_api.h" |
| 11 #include "ash/touch/touchscreen_util.h" | 11 #include "ash/touch/touchscreen_util.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "ui/events/devices/input_device.h" | 13 #include "ui/events/devices/input_device.h" |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 | 16 |
| 17 class TouchscreenUtilTest : public test::AshTestBase { | 17 class TouchscreenUtilTest : public test::AshTestBase { |
| 18 public: | 18 public: |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 AssociateTouchscreens(&displays_, devices); | 257 AssociateTouchscreens(&displays_, devices); |
| 258 | 258 |
| 259 EXPECT_EQ(1u, displays_[0].input_devices().size()); | 259 EXPECT_EQ(1u, displays_[0].input_devices().size()); |
| 260 EXPECT_EQ(1, displays_[0].input_devices()[0]); | 260 EXPECT_EQ(1, displays_[0].input_devices()[0]); |
| 261 EXPECT_EQ(0u, displays_[1].input_devices().size()); | 261 EXPECT_EQ(0u, displays_[1].input_devices().size()); |
| 262 EXPECT_EQ(0u, displays_[2].input_devices().size()); | 262 EXPECT_EQ(0u, displays_[2].input_devices().size()); |
| 263 EXPECT_EQ(0u, displays_[3].input_devices().size()); | 263 EXPECT_EQ(0u, displays_[3].input_devices().size()); |
| 264 } | 264 } |
| 265 | 265 |
| 266 } // namespace ash | 266 } // namespace ash |
| OLD | NEW |