blob: f8d9e12e076eb2f6f3a8d3a8383d3590afa9a6c1 [file] [log] [blame]
[email protected]6d980bc2012-09-10 19:28:451// 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
11namespace chromeos {
12
13typedef testing::Test OutputConfiguratorTest;
14
15TEST_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