OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 |
11 #include <stdio.h> | 11 #include <stdio.h> |
12 #include <string.h> | 12 #include <string.h> |
13 | 13 |
14 #include <algorithm> | 14 #include <algorithm> |
15 | 15 |
16 #include "webrtc/system_wrappers/interface/sort.h" | 16 #include "webrtc/system_wrappers/include/sort.h" |
17 #include "webrtc/system_wrappers/interface/tick_util.h" | 17 #include "webrtc/system_wrappers/include/tick_util.h" |
18 | 18 |
19 // Excellent work polluting the global namespace Visual Studio... | 19 // Excellent work polluting the global namespace Visual Studio... |
20 #undef max | 20 #undef max |
21 #undef min | 21 #undef min |
22 #include <limits> | 22 #include <limits> |
23 | 23 |
24 template<typename KeyType> | 24 template<typename KeyType> |
25 struct LotsOfData | 25 struct LotsOfData |
26 { | 26 { |
27 KeyType key; | 27 KeyType key; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 RunSortTest<float>(webrtc::TYPE_Float32, keySort); | 257 RunSortTest<float>(webrtc::TYPE_Float32, keySort); |
258 RunSortTest<double>(webrtc::TYPE_Float64, keySort); | 258 RunSortTest<double>(webrtc::TYPE_Float64, keySort); |
259 | 259 |
260 keySort = !keySort; | 260 keySort = !keySort; |
261 } | 261 } |
262 | 262 |
263 printf("All tests passed\n"); | 263 printf("All tests passed\n"); |
264 | 264 |
265 return 0; | 265 return 0; |
266 } | 266 } |
OLD | NEW |