OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 #if defined(WEBRTC_IOS) | 215 #if defined(WEBRTC_IOS) |
216 return IOSResourcePath(name, extension); | 216 return IOSResourcePath(name, extension); |
217 #else | 217 #else |
218 std::string platform = "win"; | 218 std::string platform = "win"; |
219 #ifdef WEBRTC_LINUX | 219 #ifdef WEBRTC_LINUX |
220 platform = "linux"; | 220 platform = "linux"; |
221 #endif // WEBRTC_LINUX | 221 #endif // WEBRTC_LINUX |
222 #ifdef WEBRTC_MAC | 222 #ifdef WEBRTC_MAC |
223 platform = "mac"; | 223 platform = "mac"; |
224 #endif // WEBRTC_MAC | 224 #endif // WEBRTC_MAC |
| 225 #ifdef WEBRTC_ANDROID |
| 226 platform = "android"; |
| 227 #endif // WEBRTC_ANDROID |
225 | 228 |
226 #ifdef WEBRTC_ARCH_64_BITS | 229 #ifdef WEBRTC_ARCH_64_BITS |
227 std::string architecture = "64"; | 230 std::string architecture = "64"; |
228 #else | 231 #else |
229 std::string architecture = "32"; | 232 std::string architecture = "32"; |
230 #endif // WEBRTC_ARCH_64_BITS | 233 #endif // WEBRTC_ARCH_64_BITS |
231 | 234 |
232 std::string resources_path = ProjectRootPath() + kResourcesDirName + | 235 std::string resources_path = ProjectRootPath() + kResourcesDirName + |
233 kPathDelimiter; | 236 kPathDelimiter; |
234 std::string resource_file = resources_path + name + "_" + platform + "_" + | 237 std::string resource_file = resources_path + name + "_" + platform + "_" + |
(...skipping 24 matching lines...) Expand all Loading... |
259 if (fseek(f, 0, SEEK_END) == 0) { | 262 if (fseek(f, 0, SEEK_END) == 0) { |
260 size = ftell(f); | 263 size = ftell(f); |
261 } | 264 } |
262 fclose(f); | 265 fclose(f); |
263 } | 266 } |
264 return size; | 267 return size; |
265 } | 268 } |
266 | 269 |
267 } // namespace test | 270 } // namespace test |
268 } // namespace webrtc | 271 } // namespace webrtc |
OLD | NEW |