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

Side by Side Diff: ui/display/util/edid_parser_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
« no previous file with comments | « ui/display/manager/display_layout_builder_unittest.cc ('k') | ui/display/win/screen_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/util/edid_parser.h" 5 #include "ui/display/util/edid_parser.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory>
10
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
13 14
14 namespace ui { 15 namespace ui {
15 16
16 namespace { 17 namespace {
17 18
18 // Returns the number of characters in the string literal but doesn't count its 19 // Returns the number of characters in the string literal but doesn't count its
19 // terminator NULL byte. 20 // terminator NULL byte.
20 #define charsize(str) (arraysize(str) - 1) 21 #define charsize(str) (arraysize(str) - 1)
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 TEST(EDIDParserTest, GetDisplayIdFailure) { 266 TEST(EDIDParserTest, GetDisplayIdFailure) {
266 int64_t id = -1; 267 int64_t id = -1;
267 int64_t product_id = -1; 268 int64_t product_id = -1;
268 std::vector<uint8_t> edid; 269 std::vector<uint8_t> edid;
269 EXPECT_FALSE(GetDisplayIdFromEDID(edid, 0, &id, &product_id)); 270 EXPECT_FALSE(GetDisplayIdFromEDID(edid, 0, &id, &product_id));
270 EXPECT_EQ(-1, id); 271 EXPECT_EQ(-1, id);
271 EXPECT_EQ(-1, product_id); 272 EXPECT_EQ(-1, product_id);
272 } 273 }
273 274
274 } // namespace ui 275 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/manager/display_layout_builder_unittest.cc ('k') | ui/display/win/screen_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698