[email protected] | 6d980bc | 2012-09-10 19:28:45 | [diff] [blame^] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "chromeos/display/output_configurator.h" |
| 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | #include "testing/gtest/include/gtest/gtest.h" |
| 10 | |
| 11 | namespace chromeos { |
| 12 | |
| 13 | typedef testing::Test OutputConfiguratorTest; |
| 14 | |
| 15 | TEST_F(OutputConfiguratorTest, IsInternalOutputName) { |
| 16 | EXPECT_TRUE(OutputConfigurator::IsInternalOutputName("LVDS")); |
| 17 | EXPECT_TRUE(OutputConfigurator::IsInternalOutputName("eDP")); |
| 18 | EXPECT_TRUE(OutputConfigurator::IsInternalOutputName("LVDSxx")); |
| 19 | EXPECT_TRUE(OutputConfigurator::IsInternalOutputName("eDPzz")); |
| 20 | |
| 21 | EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("xyz")); |
| 22 | EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("abcLVDS")); |
| 23 | EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("cdeeDP")); |
| 24 | EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("LVD")); |
| 25 | EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("eD")); |
| 26 | } |
| 27 | |
| 28 | } // namespace chromeos |