OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 "chrome/browser/chromeos/accessibility/accessibility_highlight_manager.
h" | 5 #include "chrome/browser/chromeos/accessibility/accessibility_highlight_manager.
h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/threading/sequenced_worker_pool.h" | |
12 #include "chrome/browser/chromeos/ui/accessibility_focus_ring_controller.h" | 11 #include "chrome/browser/chromeos/ui/accessibility_focus_ring_controller.h" |
13 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
14 #include "chromeos/chromeos_switches.h" | 13 #include "chromeos/chromeos_switches.h" |
15 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/focused_node_details.h" | 15 #include "content/public/browser/focused_node_details.h" |
17 #include "content/public/browser/notification_types.h" | 16 #include "content/public/browser/notification_types.h" |
18 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
19 #include "ui/base/ime/dummy_text_input_client.h" | 18 #include "ui/base/ime/dummy_text_input_client.h" |
20 #include "ui/base/ime/input_method.h" | 19 #include "ui/base/ime/input_method.h" |
21 #include "ui/base/ime/text_input_client.h" | 20 #include "ui/base/ime/text_input_client.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // This is a smoke test to assert that something is drawn in the right | 229 // This is a smoke test to assert that something is drawn in the right |
231 // part of the screen of approximately the right size and color. | 230 // part of the screen of approximately the right size and color. |
232 // There's deliberately some tolerance for tiny errors. | 231 // There's deliberately some tolerance for tiny errors. |
233 EXPECT_NEAR(1608, diff_count(), 50); | 232 EXPECT_NEAR(1608, diff_count(), 50); |
234 EXPECT_NEAR(255, SkColorGetR(average_diff_color()), 5); | 233 EXPECT_NEAR(255, SkColorGetR(average_diff_color()), 5); |
235 EXPECT_NEAR(201, SkColorGetG(average_diff_color()), 5); | 234 EXPECT_NEAR(201, SkColorGetG(average_diff_color()), 5); |
236 EXPECT_NEAR(152, SkColorGetB(average_diff_color()), 5); | 235 EXPECT_NEAR(152, SkColorGetB(average_diff_color()), 5); |
237 } | 236 } |
238 | 237 |
239 } // namespace chromeos | 238 } // namespace chromeos |
OLD | NEW |