Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: ui/display/manager/chromeos/x11/display_util_x11_unittest.cc

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/display/manager/chromeos/x11/display_util_x11.h" 5 #include "ui/display/manager/chromeos/x11/display_util_x11.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace ui { 11 namespace display {
12 12
13 TEST(DisplayUtilX11Test, GetDisplayConnectionTypeFromName) { 13 TEST(DisplayUtilX11Test, GetDisplayConnectionTypeFromName) {
14 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL, 14 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL,
15 GetDisplayConnectionTypeFromName("LVDS")); 15 GetDisplayConnectionTypeFromName("LVDS"));
16 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL, 16 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL,
17 GetDisplayConnectionTypeFromName("eDP")); 17 GetDisplayConnectionTypeFromName("eDP"));
18 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL, 18 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL,
19 GetDisplayConnectionTypeFromName("DSI")); 19 GetDisplayConnectionTypeFromName("DSI"));
20 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL, 20 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL,
21 GetDisplayConnectionTypeFromName("LVDSxx")); 21 GetDisplayConnectionTypeFromName("LVDSxx"));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN, 58 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN,
59 GetDisplayConnectionTypeFromName("VG")); 59 GetDisplayConnectionTypeFromName("VG"));
60 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN, 60 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN,
61 GetDisplayConnectionTypeFromName("HDM")); 61 GetDisplayConnectionTypeFromName("HDM"));
62 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN, 62 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN,
63 GetDisplayConnectionTypeFromName("DV")); 63 GetDisplayConnectionTypeFromName("DV"));
64 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN, 64 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN,
65 GetDisplayConnectionTypeFromName("D")); 65 GetDisplayConnectionTypeFromName("D"));
66 } 66 }
67 67
68 } // namespace ui 68 } // namespace display
OLDNEW
« no previous file with comments | « ui/display/manager/chromeos/x11/display_util_x11.cc ('k') | ui/display/manager/chromeos/x11/native_display_delegate_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698