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 "chromeos/display/output_configurator.h" | 5 #include "chromeos/display/output_configurator.h" |
6 | 6 |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Strings returned by TestDelegate::GetActionsAndClear() to describe various | 22 // Strings returned by TestDelegate::GetActionsAndClear() to describe various |
23 // actions that were performed. | 23 // actions that were performed. |
24 const char kInitXRandR[] = "init"; | 24 const char kInitXRandR[] = "init"; |
25 const char kUpdateXRandR[] = "update"; | 25 const char kUpdateXRandR[] = "update"; |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 test_api_.SendOutputChangeEvents(true); | 749 test_api_.SendOutputChangeEvents(true); |
750 EXPECT_EQ(STATE_DUAL_EXTENDED, configurator_.output_state()); | 750 EXPECT_EQ(STATE_DUAL_EXTENDED, configurator_.output_state()); |
751 | 751 |
752 outputs_[0].has_display_id = true; | 752 outputs_[0].has_display_id = true; |
753 UpdateOutputs(2); | 753 UpdateOutputs(2); |
754 test_api_.SendOutputChangeEvents(true); | 754 test_api_.SendOutputChangeEvents(true); |
755 EXPECT_EQ(STATE_DUAL_MIRROR, configurator_.output_state()); | 755 EXPECT_EQ(STATE_DUAL_MIRROR, configurator_.output_state()); |
756 } | 756 } |
757 | 757 |
758 } // namespace chromeos | 758 } // namespace chromeos |
OLD | NEW |