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 "content/shell/app/webkit_test_platform_support.h" | 5 #include "content/shell/app/webkit_test_platform_support.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <iostream> | 8 #include <iostream> |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_util.h" | |
14 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "content/shell/common/shell_switches.h" | 18 #include "content/shell/common/shell_switches.h" |
19 | 19 |
20 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ | 20 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ |
21 offsetof(struct_name, member) + \ | 21 offsetof(struct_name, member) + \ |
22 (sizeof static_cast<struct_name*>(0)->member) | 22 (sizeof static_cast<struct_name*>(0)->member) |
23 #define NONCLIENTMETRICS_SIZE_PRE_VISTA \ | 23 #define NONCLIENTMETRICS_SIZE_PRE_VISTA \ |
24 SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(NONCLIENTMETRICS, lfMessageFont) | 24 SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(NONCLIENTMETRICS, lfMessageFont) |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 std::cerr << *it << "\n"; | 108 std::cerr << *it << "\n"; |
109 } | 109 } |
110 return errors.empty(); | 110 return errors.empty(); |
111 } | 111 } |
112 | 112 |
113 bool WebKitTestPlatformInitialize() { | 113 bool WebKitTestPlatformInitialize() { |
114 return SetupFonts(); | 114 return SetupFonts(); |
115 } | 115 } |
116 | 116 |
117 } // namespace content | 117 } // namespace content |
OLD | NEW |