OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 @0x8000000000000000, | 54 @0x8000000000000000, |
55 @0xffffffffffffffff, | 55 @0xffffffffffffffff, |
56 @0x0123456789abcdef, | 56 @0x0123456789abcdef, |
57 @0xfedcba9876543210, | 57 @0xfedcba9876543210, |
58 }; | 58 }; |
59 | 59 |
60 for (size_t index = 0; index < arraysize(integer_nses); ++index) { | 60 for (size_t index = 0; index < arraysize(integer_nses); ++index) { |
61 NSNumber* integer_ns = integer_nses[index]; | 61 NSNumber* integer_ns = integer_nses[index]; |
62 launch_data.reset(CFPropertyToLaunchData(integer_ns)); | 62 launch_data.reset(CFPropertyToLaunchData(integer_ns)); |
63 ASSERT_TRUE(launch_data.get()); | 63 ASSERT_TRUE(launch_data.get()); |
64 ASSERT_EQ(LAUNCH_DATA_INTEGER, launch_data_get_type(launch_data)); | 64 ASSERT_EQ(LAUNCH_DATA_INTEGER, LaunchDataGetType(launch_data)); |
65 EXPECT_EQ( | 65 EXPECT_EQ([integer_ns longLongValue], LaunchDataGetInteger(launch_data)) |
66 [integer_ns longLongValue], launch_data_get_integer(launch_data)) | |
67 << "index " << index; | 66 << "index " << index; |
68 } | 67 } |
69 } | 68 } |
70 } | 69 } |
71 | 70 |
72 TEST(Launchd, CFPropertyToLaunchData_FloatingPoint) { | 71 TEST(Launchd, CFPropertyToLaunchData_FloatingPoint) { |
73 @autoreleasepool { | 72 @autoreleasepool { |
74 base::mac::ScopedLaunchData launch_data; | 73 base::mac::ScopedLaunchData launch_data; |
75 | 74 |
76 NSNumber* double_nses[] = { | 75 NSNumber* double_nses[] = { |
77 @0.0, | 76 @0.0, |
78 @1.0, | 77 @1.0, |
79 @-1.0, | 78 @-1.0, |
80 [NSNumber numberWithFloat:std::numeric_limits<float>::min()], | 79 [NSNumber numberWithFloat:std::numeric_limits<float>::min()], |
81 [NSNumber numberWithFloat:std::numeric_limits<float>::max()], | 80 [NSNumber numberWithFloat:std::numeric_limits<float>::max()], |
82 [NSNumber numberWithFloat:std::numeric_limits<double>::min()], | 81 [NSNumber numberWithFloat:std::numeric_limits<double>::min()], |
83 [NSNumber numberWithFloat:std::numeric_limits<double>::max()], | 82 [NSNumber numberWithFloat:std::numeric_limits<double>::max()], |
84 @3.1415926535897932, | 83 @3.1415926535897932, |
85 [NSNumber numberWithFloat:std::numeric_limits<double>::infinity()], | 84 [NSNumber numberWithFloat:std::numeric_limits<double>::infinity()], |
86 [NSNumber numberWithFloat:std::numeric_limits<double>::quiet_NaN()], | 85 [NSNumber numberWithFloat:std::numeric_limits<double>::quiet_NaN()], |
87 [NSNumber numberWithFloat:std::numeric_limits<double>::signaling_NaN()], | 86 [NSNumber numberWithFloat:std::numeric_limits<double>::signaling_NaN()], |
88 }; | 87 }; |
89 | 88 |
90 for (size_t index = 0; index < arraysize(double_nses); ++index) { | 89 for (size_t index = 0; index < arraysize(double_nses); ++index) { |
91 NSNumber* double_ns = double_nses[index]; | 90 NSNumber* double_ns = double_nses[index]; |
92 launch_data.reset(CFPropertyToLaunchData(double_ns)); | 91 launch_data.reset(CFPropertyToLaunchData(double_ns)); |
93 ASSERT_TRUE(launch_data.get()); | 92 ASSERT_TRUE(launch_data.get()); |
94 ASSERT_EQ(LAUNCH_DATA_REAL, launch_data_get_type(launch_data)); | 93 ASSERT_EQ(LAUNCH_DATA_REAL, LaunchDataGetType(launch_data)); |
95 double expected_double_value = [double_ns doubleValue]; | 94 double expected_double_value = [double_ns doubleValue]; |
96 double observed_double_value = launch_data_get_real(launch_data); | 95 double observed_double_value = LaunchDataGetReal(launch_data); |
97 bool expected_is_nan = std::isnan(expected_double_value); | 96 bool expected_is_nan = std::isnan(expected_double_value); |
98 EXPECT_EQ(expected_is_nan, std::isnan(observed_double_value)); | 97 EXPECT_EQ(expected_is_nan, std::isnan(observed_double_value)); |
99 if (!expected_is_nan) { | 98 if (!expected_is_nan) { |
100 EXPECT_DOUBLE_EQ(expected_double_value, observed_double_value) | 99 EXPECT_DOUBLE_EQ(expected_double_value, observed_double_value) |
101 << "index " << index; | 100 << "index " << index; |
102 } | 101 } |
103 } | 102 } |
104 } | 103 } |
105 } | 104 } |
106 | 105 |
107 TEST(Launchd, CFPropertyToLaunchData_Boolean) { | 106 TEST(Launchd, CFPropertyToLaunchData_Boolean) { |
108 @autoreleasepool { | 107 @autoreleasepool { |
109 base::mac::ScopedLaunchData launch_data; | 108 base::mac::ScopedLaunchData launch_data; |
110 | 109 |
111 NSNumber* bool_nses[] = { | 110 NSNumber* bool_nses[] = { |
112 @NO, | 111 @NO, |
113 @YES, | 112 @YES, |
114 }; | 113 }; |
115 | 114 |
116 for (size_t index = 0; index < arraysize(bool_nses); ++index) { | 115 for (size_t index = 0; index < arraysize(bool_nses); ++index) { |
117 NSNumber* bool_ns = bool_nses[index]; | 116 NSNumber* bool_ns = bool_nses[index]; |
118 launch_data.reset(CFPropertyToLaunchData(bool_ns)); | 117 launch_data.reset(CFPropertyToLaunchData(bool_ns)); |
119 ASSERT_TRUE(launch_data.get()); | 118 ASSERT_TRUE(launch_data.get()); |
120 ASSERT_EQ(LAUNCH_DATA_BOOL, launch_data_get_type(launch_data)); | 119 ASSERT_EQ(LAUNCH_DATA_BOOL, LaunchDataGetType(launch_data)); |
121 if ([bool_ns boolValue]) { | 120 if ([bool_ns boolValue]) { |
122 EXPECT_TRUE(launch_data_get_bool(launch_data)); | 121 EXPECT_TRUE(LaunchDataGetBool(launch_data)); |
123 } else { | 122 } else { |
124 EXPECT_FALSE(launch_data_get_bool(launch_data)); | 123 EXPECT_FALSE(LaunchDataGetBool(launch_data)); |
125 } | 124 } |
126 } | 125 } |
127 } | 126 } |
128 } | 127 } |
129 | 128 |
130 TEST(Launchd, CFPropertyToLaunchData_String) { | 129 TEST(Launchd, CFPropertyToLaunchData_String) { |
131 @autoreleasepool { | 130 @autoreleasepool { |
132 base::mac::ScopedLaunchData launch_data; | 131 base::mac::ScopedLaunchData launch_data; |
133 | 132 |
134 NSString* string_nses[] = { | 133 NSString* string_nses[] = { |
135 @"", | 134 @"", |
136 @"string", | 135 @"string", |
137 @"Üñîçø∂é", | 136 @"Üñîçø∂é", |
138 }; | 137 }; |
139 | 138 |
140 for (size_t index = 0; index < arraysize(string_nses); ++index) { | 139 for (size_t index = 0; index < arraysize(string_nses); ++index) { |
141 NSString* string_ns = string_nses[index]; | 140 NSString* string_ns = string_nses[index]; |
142 launch_data.reset(CFPropertyToLaunchData(string_ns)); | 141 launch_data.reset(CFPropertyToLaunchData(string_ns)); |
143 ASSERT_TRUE(launch_data.get()); | 142 ASSERT_TRUE(launch_data.get()); |
144 ASSERT_EQ(LAUNCH_DATA_STRING, launch_data_get_type(launch_data)); | 143 ASSERT_EQ(LAUNCH_DATA_STRING, LaunchDataGetType(launch_data)); |
145 EXPECT_STREQ([string_ns UTF8String], launch_data_get_string(launch_data)); | 144 EXPECT_STREQ([string_ns UTF8String], LaunchDataGetString(launch_data)); |
146 } | 145 } |
147 } | 146 } |
148 } | 147 } |
149 | 148 |
150 TEST(Launchd, CFPropertyToLaunchData_Data) { | 149 TEST(Launchd, CFPropertyToLaunchData_Data) { |
151 @autoreleasepool { | 150 @autoreleasepool { |
152 base::mac::ScopedLaunchData launch_data; | 151 base::mac::ScopedLaunchData launch_data; |
153 | 152 |
154 const uint8_t data_c[] = { | 153 const uint8_t data_c[] = { |
155 1, 2, 3, 4, 5, 6, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 9, 8, 7, 6, 5, 4, 3, 2}; | 154 1, 2, 3, 4, 5, 6, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 9, 8, 7, 6, 5, 4, 3, 2}; |
156 NSData* data_ns = [NSData dataWithBytes:data_c length:sizeof(data_c)]; | 155 NSData* data_ns = [NSData dataWithBytes:data_c length:sizeof(data_c)]; |
157 launch_data.reset(CFPropertyToLaunchData(data_ns)); | 156 launch_data.reset(CFPropertyToLaunchData(data_ns)); |
158 ASSERT_TRUE(launch_data.get()); | 157 ASSERT_TRUE(launch_data.get()); |
159 ASSERT_EQ(LAUNCH_DATA_OPAQUE, launch_data_get_type(launch_data)); | 158 ASSERT_EQ(LAUNCH_DATA_OPAQUE, LaunchDataGetType(launch_data)); |
160 EXPECT_EQ(sizeof(data_c), launch_data_get_opaque_size(launch_data)); | 159 EXPECT_EQ(sizeof(data_c), LaunchDataGetOpaqueSize(launch_data)); |
161 EXPECT_EQ( | 160 EXPECT_EQ(0, |
162 0, memcmp(launch_data_get_opaque(launch_data), data_c, sizeof(data_c))); | 161 memcmp(LaunchDataGetOpaque(launch_data), data_c, sizeof(data_c))); |
163 } | 162 } |
164 } | 163 } |
165 | 164 |
166 TEST(Launchd, CFPropertyToLaunchData_Dictionary) { | 165 TEST(Launchd, CFPropertyToLaunchData_Dictionary) { |
167 @autoreleasepool { | 166 @autoreleasepool { |
168 base::mac::ScopedLaunchData launch_data; | 167 base::mac::ScopedLaunchData launch_data; |
169 | 168 |
170 NSDictionary* dictionary_ns = @{ | 169 NSDictionary* dictionary_ns = @{ |
171 @"key" : @"value", | 170 @"key" : @"value", |
172 }; | 171 }; |
173 | 172 |
174 launch_data.reset(CFPropertyToLaunchData(dictionary_ns)); | 173 launch_data.reset(CFPropertyToLaunchData(dictionary_ns)); |
175 ASSERT_TRUE(launch_data.get()); | 174 ASSERT_TRUE(launch_data.get()); |
176 ASSERT_EQ(LAUNCH_DATA_DICTIONARY, launch_data_get_type(launch_data)); | 175 ASSERT_EQ(LAUNCH_DATA_DICTIONARY, LaunchDataGetType(launch_data)); |
177 EXPECT_EQ([dictionary_ns count], launch_data_dict_get_count(launch_data)); | 176 EXPECT_EQ([dictionary_ns count], LaunchDataDictGetCount(launch_data)); |
178 | 177 |
179 launch_data_t launch_lookup_data = | 178 launch_data_t launch_lookup_data = LaunchDataDictLookup(launch_data, "key"); |
180 launch_data_dict_lookup(launch_data, "key"); | |
181 ASSERT_TRUE(launch_lookup_data); | 179 ASSERT_TRUE(launch_lookup_data); |
182 ASSERT_EQ(LAUNCH_DATA_STRING, launch_data_get_type(launch_lookup_data)); | 180 ASSERT_EQ(LAUNCH_DATA_STRING, LaunchDataGetType(launch_lookup_data)); |
183 EXPECT_STREQ("value", launch_data_get_string(launch_lookup_data)); | 181 EXPECT_STREQ("value", LaunchDataGetString(launch_lookup_data)); |
184 } | 182 } |
185 } | 183 } |
186 | 184 |
187 TEST(Launchd, CFPropertyToLaunchData_Array) { | 185 TEST(Launchd, CFPropertyToLaunchData_Array) { |
188 @autoreleasepool { | 186 @autoreleasepool { |
189 base::mac::ScopedLaunchData launch_data; | 187 base::mac::ScopedLaunchData launch_data; |
190 | 188 |
191 NSArray* array_ns = @[ @"element_1", @"element_2", ]; | 189 NSArray* array_ns = @[ @"element_1", @"element_2", ]; |
192 | 190 |
193 launch_data.reset(CFPropertyToLaunchData(array_ns)); | 191 launch_data.reset(CFPropertyToLaunchData(array_ns)); |
194 ASSERT_TRUE(launch_data.get()); | 192 ASSERT_TRUE(launch_data.get()); |
195 ASSERT_EQ(LAUNCH_DATA_ARRAY, launch_data_get_type(launch_data)); | 193 ASSERT_EQ(LAUNCH_DATA_ARRAY, LaunchDataGetType(launch_data)); |
196 EXPECT_EQ([array_ns count], launch_data_array_get_count(launch_data)); | 194 EXPECT_EQ([array_ns count], LaunchDataArrayGetCount(launch_data)); |
197 | 195 |
198 launch_data_t launch_lookup_data = | 196 launch_data_t launch_lookup_data = LaunchDataArrayGetIndex(launch_data, 0); |
199 launch_data_array_get_index(launch_data, 0); | |
200 ASSERT_TRUE(launch_lookup_data); | 197 ASSERT_TRUE(launch_lookup_data); |
201 ASSERT_EQ(LAUNCH_DATA_STRING, launch_data_get_type(launch_lookup_data)); | 198 ASSERT_EQ(LAUNCH_DATA_STRING, LaunchDataGetType(launch_lookup_data)); |
202 EXPECT_STREQ("element_1", launch_data_get_string(launch_lookup_data)); | 199 EXPECT_STREQ("element_1", LaunchDataGetString(launch_lookup_data)); |
203 | 200 |
204 launch_lookup_data = launch_data_array_get_index(launch_data, 1); | 201 launch_lookup_data = LaunchDataArrayGetIndex(launch_data, 1); |
205 ASSERT_TRUE(launch_lookup_data); | 202 ASSERT_TRUE(launch_lookup_data); |
206 ASSERT_EQ(LAUNCH_DATA_STRING, launch_data_get_type(launch_lookup_data)); | 203 ASSERT_EQ(LAUNCH_DATA_STRING, LaunchDataGetType(launch_lookup_data)); |
207 EXPECT_STREQ("element_2", launch_data_get_string(launch_lookup_data)); | 204 EXPECT_STREQ("element_2", LaunchDataGetString(launch_lookup_data)); |
208 } | 205 } |
209 } | 206 } |
210 | 207 |
211 TEST(Launchd, CFPropertyToLaunchData_NSDate) { | 208 TEST(Launchd, CFPropertyToLaunchData_NSDate) { |
212 // Test that NSDate conversions fail as advertised. There’s no type for | 209 // Test that NSDate conversions fail as advertised. There’s no type for |
213 // storing date values in a launch_data_t. | 210 // storing date values in a launch_data_t. |
214 | 211 |
215 @autoreleasepool { | 212 @autoreleasepool { |
216 base::mac::ScopedLaunchData launch_data; | 213 base::mac::ScopedLaunchData launch_data; |
217 | 214 |
(...skipping 23 matching lines...) Expand all Loading... |
241 @LAUNCH_JOBKEY_ONDEMAND : @YES, | 238 @LAUNCH_JOBKEY_ONDEMAND : @YES, |
242 @LAUNCH_JOBKEY_PROGRAMARGUMENTS : | 239 @LAUNCH_JOBKEY_PROGRAMARGUMENTS : |
243 @[ @"/bin/bash", @"-c", @"/sbin/reboot", ], | 240 @[ @"/bin/bash", @"-c", @"/sbin/reboot", ], |
244 @LAUNCH_JOBKEY_MACHSERVICES : @{ | 241 @LAUNCH_JOBKEY_MACHSERVICES : @{ |
245 @"com.example.service.rebooter" : @YES, | 242 @"com.example.service.rebooter" : @YES, |
246 }, | 243 }, |
247 }; | 244 }; |
248 | 245 |
249 launch_data.reset(CFPropertyToLaunchData(job_dictionary)); | 246 launch_data.reset(CFPropertyToLaunchData(job_dictionary)); |
250 ASSERT_TRUE(launch_data.get()); | 247 ASSERT_TRUE(launch_data.get()); |
251 ASSERT_EQ(LAUNCH_DATA_DICTIONARY, launch_data_get_type(launch_data)); | 248 ASSERT_EQ(LAUNCH_DATA_DICTIONARY, LaunchDataGetType(launch_data)); |
252 EXPECT_EQ(4u, launch_data_dict_get_count(launch_data)); | 249 EXPECT_EQ(4u, LaunchDataDictGetCount(launch_data)); |
253 | 250 |
254 launch_data_t launch_lookup_data = | 251 launch_data_t launch_lookup_data = |
255 launch_data_dict_lookup(launch_data, LAUNCH_JOBKEY_LABEL); | 252 LaunchDataDictLookup(launch_data, LAUNCH_JOBKEY_LABEL); |
256 ASSERT_TRUE(launch_lookup_data); | 253 ASSERT_TRUE(launch_lookup_data); |
257 ASSERT_EQ(LAUNCH_DATA_STRING, launch_data_get_type(launch_lookup_data)); | 254 ASSERT_EQ(LAUNCH_DATA_STRING, LaunchDataGetType(launch_lookup_data)); |
258 EXPECT_STREQ("com.example.job.rebooter", | 255 EXPECT_STREQ("com.example.job.rebooter", |
259 launch_data_get_string(launch_lookup_data)); | 256 LaunchDataGetString(launch_lookup_data)); |
260 | 257 |
261 launch_lookup_data = | 258 launch_lookup_data = |
262 launch_data_dict_lookup(launch_data, LAUNCH_JOBKEY_ONDEMAND); | 259 LaunchDataDictLookup(launch_data, LAUNCH_JOBKEY_ONDEMAND); |
263 ASSERT_TRUE(launch_lookup_data); | 260 ASSERT_TRUE(launch_lookup_data); |
264 ASSERT_EQ(LAUNCH_DATA_BOOL, launch_data_get_type(launch_lookup_data)); | 261 ASSERT_EQ(LAUNCH_DATA_BOOL, LaunchDataGetType(launch_lookup_data)); |
265 EXPECT_TRUE(launch_data_get_bool(launch_lookup_data)); | 262 EXPECT_TRUE(LaunchDataGetBool(launch_lookup_data)); |
266 | 263 |
267 launch_lookup_data = | 264 launch_lookup_data = |
268 launch_data_dict_lookup(launch_data, LAUNCH_JOBKEY_PROGRAMARGUMENTS); | 265 LaunchDataDictLookup(launch_data, LAUNCH_JOBKEY_PROGRAMARGUMENTS); |
269 ASSERT_TRUE(launch_lookup_data); | 266 ASSERT_TRUE(launch_lookup_data); |
270 ASSERT_EQ(LAUNCH_DATA_ARRAY, launch_data_get_type(launch_lookup_data)); | 267 ASSERT_EQ(LAUNCH_DATA_ARRAY, LaunchDataGetType(launch_lookup_data)); |
271 EXPECT_EQ(3u, launch_data_array_get_count(launch_lookup_data)); | 268 EXPECT_EQ(3u, LaunchDataArrayGetCount(launch_lookup_data)); |
272 | 269 |
273 launch_data_t launch_sublookup_data = | 270 launch_data_t launch_sublookup_data = |
274 launch_data_array_get_index(launch_lookup_data, 0); | 271 LaunchDataArrayGetIndex(launch_lookup_data, 0); |
275 ASSERT_TRUE(launch_sublookup_data); | 272 ASSERT_TRUE(launch_sublookup_data); |
276 ASSERT_EQ(LAUNCH_DATA_STRING, launch_data_get_type(launch_sublookup_data)); | 273 ASSERT_EQ(LAUNCH_DATA_STRING, LaunchDataGetType(launch_sublookup_data)); |
277 EXPECT_STREQ("/bin/bash", launch_data_get_string(launch_sublookup_data)); | 274 EXPECT_STREQ("/bin/bash", LaunchDataGetString(launch_sublookup_data)); |
278 | 275 |
279 launch_sublookup_data = launch_data_array_get_index(launch_lookup_data, 1); | 276 launch_sublookup_data = LaunchDataArrayGetIndex(launch_lookup_data, 1); |
280 ASSERT_TRUE(launch_sublookup_data); | 277 ASSERT_TRUE(launch_sublookup_data); |
281 ASSERT_EQ(LAUNCH_DATA_STRING, launch_data_get_type(launch_sublookup_data)); | 278 ASSERT_EQ(LAUNCH_DATA_STRING, LaunchDataGetType(launch_sublookup_data)); |
282 EXPECT_STREQ("-c", launch_data_get_string(launch_sublookup_data)); | 279 EXPECT_STREQ("-c", LaunchDataGetString(launch_sublookup_data)); |
283 | 280 |
284 launch_sublookup_data = launch_data_array_get_index(launch_lookup_data, 2); | 281 launch_sublookup_data = LaunchDataArrayGetIndex(launch_lookup_data, 2); |
285 ASSERT_TRUE(launch_sublookup_data); | 282 ASSERT_TRUE(launch_sublookup_data); |
286 ASSERT_EQ(LAUNCH_DATA_STRING, launch_data_get_type(launch_sublookup_data)); | 283 ASSERT_EQ(LAUNCH_DATA_STRING, LaunchDataGetType(launch_sublookup_data)); |
287 EXPECT_STREQ("/sbin/reboot", launch_data_get_string(launch_sublookup_data)); | 284 EXPECT_STREQ("/sbin/reboot", LaunchDataGetString(launch_sublookup_data)); |
288 | 285 |
289 launch_lookup_data = | 286 launch_lookup_data = |
290 launch_data_dict_lookup(launch_data, LAUNCH_JOBKEY_MACHSERVICES); | 287 LaunchDataDictLookup(launch_data, LAUNCH_JOBKEY_MACHSERVICES); |
291 ASSERT_TRUE(launch_lookup_data); | 288 ASSERT_TRUE(launch_lookup_data); |
292 ASSERT_EQ(LAUNCH_DATA_DICTIONARY, launch_data_get_type(launch_lookup_data)); | 289 ASSERT_EQ(LAUNCH_DATA_DICTIONARY, LaunchDataGetType(launch_lookup_data)); |
293 EXPECT_EQ(1u, launch_data_dict_get_count(launch_lookup_data)); | 290 EXPECT_EQ(1u, LaunchDataDictGetCount(launch_lookup_data)); |
294 | 291 |
295 launch_sublookup_data = launch_data_dict_lookup( | 292 launch_sublookup_data = LaunchDataDictLookup( |
296 launch_lookup_data, "com.example.service.rebooter"); | 293 launch_lookup_data, "com.example.service.rebooter"); |
297 ASSERT_TRUE(launch_sublookup_data); | 294 ASSERT_TRUE(launch_sublookup_data); |
298 ASSERT_EQ(LAUNCH_DATA_BOOL, launch_data_get_type(launch_sublookup_data)); | 295 ASSERT_EQ(LAUNCH_DATA_BOOL, LaunchDataGetType(launch_sublookup_data)); |
299 EXPECT_TRUE(launch_data_get_bool(launch_sublookup_data)); | 296 EXPECT_TRUE(LaunchDataGetBool(launch_sublookup_data)); |
300 } | 297 } |
301 } | 298 } |
302 | 299 |
303 } // namespace | 300 } // namespace |
304 } // namespace test | 301 } // namespace test |
305 } // namespace crashpad | 302 } // namespace crashpad |
OLD | NEW |