OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 #if defined(WEBRTC_POSIX) | 11 #if defined(WEBRTC_POSIX) |
12 #include <sys/time.h> | 12 #include <sys/time.h> |
13 #endif // WEBRTC_POSIX | 13 #endif // WEBRTC_POSIX |
14 | 14 |
15 // TODO: Remove this once the cause of sporadic failures in these | 15 // TODO: Remove this once the cause of sporadic failures in these |
16 // tests is tracked down. | 16 // tests is tracked down. |
17 #include <iostream> | 17 #include <iostream> |
18 | 18 |
19 #if defined(WEBRTC_WIN) | 19 #if defined(WEBRTC_WIN) |
20 #include "webrtc/base/win32.h" | 20 #include "webrtc/base/win32.h" |
21 #endif // WEBRTC_WIN | 21 #endif // WEBRTC_WIN |
22 | 22 |
23 #include "webrtc/base/arraysize.h" | 23 #include "webrtc/base/arraysize.h" |
24 #include "webrtc/base/common.h" | 24 #include "webrtc/base/common.h" |
| 25 #include "webrtc/base/constructormagic.h" |
25 #include "webrtc/base/gunit.h" | 26 #include "webrtc/base/gunit.h" |
26 #include "webrtc/base/logging.h" | 27 #include "webrtc/base/logging.h" |
27 #include "webrtc/base/task.h" | 28 #include "webrtc/base/task.h" |
28 #include "webrtc/base/taskrunner.h" | 29 #include "webrtc/base/taskrunner.h" |
29 #include "webrtc/base/thread.h" | 30 #include "webrtc/base/thread.h" |
30 #include "webrtc/base/timeutils.h" | 31 #include "webrtc/base/timeutils.h" |
31 | 32 |
32 namespace rtc { | 33 namespace rtc { |
33 | 34 |
34 static int64_t GetCurrentTime() { | 35 static int64_t GetCurrentTime() { |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 // Do not start the task. | 534 // Do not start the task. |
534 // Note: this leaks memory, so don't do this. | 535 // Note: this leaks memory, so don't do this. |
535 // Instead, always run your tasks or delete them. | 536 // Instead, always run your tasks or delete them. |
536 new HappyTask(happy_task); | 537 new HappyTask(happy_task); |
537 | 538 |
538 // run the unblocked tasks | 539 // run the unblocked tasks |
539 task_runner.RunTasks(); | 540 task_runner.RunTasks(); |
540 } | 541 } |
541 | 542 |
542 } // namespace rtc | 543 } // namespace rtc |
OLD | NEW |