OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/test_runner/blink_test_platform_support.h" | 5 #include "components/test_runner/blink_test_platform_support.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <stddef.h> |
8 #include <iostream> | 9 #include <iostream> |
9 #include <list> | 10 #include <list> |
10 #include <string> | 11 #include <string> |
11 | 12 |
12 #include "base/command_line.h" | 13 #include "base/command_line.h" |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/macros.h" |
16 #include "base/path_service.h" | 18 #include "base/path_service.h" |
17 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
18 #include "ui/gfx/win/direct_write.h" | 20 #include "ui/gfx/win/direct_write.h" |
19 | 21 |
20 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ | 22 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ |
21 offsetof(struct_name, member) + \ | 23 offsetof(struct_name, member) + \ |
22 (sizeof static_cast<struct_name*>(0)->member) | 24 (sizeof static_cast<struct_name*>(0)->member) |
23 #define NONCLIENTMETRICS_SIZE_PRE_VISTA \ | 25 #define NONCLIENTMETRICS_SIZE_PRE_VISTA \ |
24 SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(NONCLIENTMETRICS, lfMessageFont) | 26 SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(NONCLIENTMETRICS, lfMessageFont) |
25 | 27 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 std::cerr << *it << "\n"; | 112 std::cerr << *it << "\n"; |
111 } | 113 } |
112 return errors.empty(); | 114 return errors.empty(); |
113 } | 115 } |
114 | 116 |
115 bool BlinkTestPlatformInitialize() { | 117 bool BlinkTestPlatformInitialize() { |
116 return SetupFonts(); | 118 return SetupFonts(); |
117 } | 119 } |
118 | 120 |
119 } // namespace test_runner | 121 } // namespace test_runner |
OLD | NEW |