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

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

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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/chromeos/x11/display_util_x11.h" 5 #include "ui/display/chromeos/x11/display_util_x11.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include <memory>
8
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace ui { 11 namespace ui {
11 12
12 TEST(DisplayUtilX11Test, GetDisplayConnectionTypeFromName) { 13 TEST(DisplayUtilX11Test, GetDisplayConnectionTypeFromName) {
13 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL, 14 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL,
14 GetDisplayConnectionTypeFromName("LVDS")); 15 GetDisplayConnectionTypeFromName("LVDS"));
15 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL, 16 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL,
16 GetDisplayConnectionTypeFromName("eDP")); 17 GetDisplayConnectionTypeFromName("eDP"));
17 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL, 18 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_INTERNAL,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 GetDisplayConnectionTypeFromName("VG")); 59 GetDisplayConnectionTypeFromName("VG"));
59 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN, 60 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN,
60 GetDisplayConnectionTypeFromName("HDM")); 61 GetDisplayConnectionTypeFromName("HDM"));
61 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN, 62 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN,
62 GetDisplayConnectionTypeFromName("DV")); 63 GetDisplayConnectionTypeFromName("DV"));
63 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN, 64 EXPECT_EQ(DISPLAY_CONNECTION_TYPE_UNKNOWN,
64 GetDisplayConnectionTypeFromName("D")); 65 GetDisplayConnectionTypeFromName("D"));
65 } 66 }
66 67
67 } // namespace ui 68 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/chromeos/x11/display_configurator_x11.cc ('k') | ui/display/chromeos/x11/native_display_delegate_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698