| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ash/test/display_manager_test_api.h" | 5 #include "ui/display/test/display_manager_test_api.h" |
| 6 | 6 |
| 7 #include <cstdarg> | 7 #include <cstdarg> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/display/display_manager.h" | |
| 11 #include "base/command_line.h" | |
| 12 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| 13 #include "ui/display/display.h" | 11 #include "ui/display/display.h" |
| 14 #include "ui/display/manager/display_layout_builder.h" | 12 #include "ui/display/manager/display_layout_builder.h" |
| 13 #include "ui/display/manager/display_manager.h" |
| 15 #include "ui/display/manager/display_manager_utilities.h" | 14 #include "ui/display/manager/display_manager_utilities.h" |
| 16 #include "ui/display/manager/managed_display_info.h" | 15 #include "ui/display/manager/managed_display_info.h" |
| 17 #include "ui/display/screen.h" | 16 #include "ui/display/screen.h" |
| 18 #include "ui/events/test/event_generator.h" | |
| 19 | 17 |
| 20 namespace ash { | 18 namespace display { |
| 21 namespace test { | 19 namespace test { |
| 22 namespace { | 20 namespace { |
| 23 | 21 |
| 24 DisplayInfoList CreateDisplayInfoListFromString( | 22 DisplayInfoList CreateDisplayInfoListFromString( |
| 25 const std::string specs, | 23 const std::string specs, |
| 26 DisplayManager* display_manager) { | 24 DisplayManager* display_manager) { |
| 27 DisplayInfoList display_info_list; | 25 DisplayInfoList display_info_list; |
| 28 std::vector<std::string> parts = base::SplitString( | 26 std::vector<std::string> parts = base::SplitString( |
| 29 specs, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 27 specs, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 30 size_t index = 0; | 28 size_t index = 0; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 va_start(args, count); | 166 va_start(args, count); |
| 169 for (size_t i = 0; i < count; i++) { | 167 for (size_t i = 0; i < count; i++) { |
| 170 int64_t id = va_arg(args, int64_t); | 168 int64_t id = va_arg(args, int64_t); |
| 171 list.push_back(id); | 169 list.push_back(id); |
| 172 } | 170 } |
| 173 display::SortDisplayIdList(&list); | 171 display::SortDisplayIdList(&list); |
| 174 return list; | 172 return list; |
| 175 } | 173 } |
| 176 | 174 |
| 177 } // namespace test | 175 } // namespace test |
| 178 } // namespace ash | 176 } // namespace display |
| OLD | NEW |