blob: f8d9e12e076eb2f6f3a8d3a8383d3590afa9a6c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/display/output_configurator.h"
#include <string>
#include "testing/gtest/include/gtest/gtest.h"
namespace chromeos {
typedef testing::Test OutputConfiguratorTest;
TEST_F(OutputConfiguratorTest, IsInternalOutputName) {
EXPECT_TRUE(OutputConfigurator::IsInternalOutputName("LVDS"));
EXPECT_TRUE(OutputConfigurator::IsInternalOutputName("eDP"));
EXPECT_TRUE(OutputConfigurator::IsInternalOutputName("LVDSxx"));
EXPECT_TRUE(OutputConfigurator::IsInternalOutputName("eDPzz"));
EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("xyz"));
EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("abcLVDS"));
EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("cdeeDP"));
EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("LVD"));
EXPECT_FALSE(OutputConfigurator::IsInternalOutputName("eD"));
}
} // namespace chromeos
|