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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 va_start(args, count); | 196 va_start(args, count); |
199 for (size_t i = 0; i < count; i++) { | 197 for (size_t i = 0; i < count; i++) { |
200 int64_t id = va_arg(args, int64_t); | 198 int64_t id = va_arg(args, int64_t); |
201 list.push_back(id); | 199 list.push_back(id); |
202 } | 200 } |
203 display::SortDisplayIdList(&list); | 201 display::SortDisplayIdList(&list); |
204 return list; | 202 return list; |
205 } | 203 } |
206 | 204 |
207 } // namespace test | 205 } // namespace test |
208 } // namespace ash | 206 } // namespace display |
OLD | NEW |