OLD | NEW |
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 Loading... |
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 |
OLD | NEW |