Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: webrtc/base/task_unittest.cc

Issue 1547343002: Remove DISABLED_ON_ macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: MAYBE_ yo Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/stream_unittest.cc ('k') | webrtc/base/testclient_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 10 matching lines...) Expand all
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/gunit.h" 25 #include "webrtc/base/gunit.h"
26 #include "webrtc/base/logging.h" 26 #include "webrtc/base/logging.h"
27 #include "webrtc/base/task.h" 27 #include "webrtc/base/task.h"
28 #include "webrtc/base/taskrunner.h" 28 #include "webrtc/base/taskrunner.h"
29 #include "webrtc/base/thread.h" 29 #include "webrtc/base/thread.h"
30 #include "webrtc/base/timeutils.h" 30 #include "webrtc/base/timeutils.h"
31 #include "webrtc/test/testsupport/gtest_disable.h"
32 31
33 namespace rtc { 32 namespace rtc {
34 33
35 static int64_t GetCurrentTime() { 34 static int64_t GetCurrentTime() {
36 return static_cast<int64_t>(Time()) * 10000; 35 return static_cast<int64_t>(Time()) * 10000;
37 } 36 }
38 37
39 // feel free to change these numbers. Note that '0' won't work, though 38 // feel free to change these numbers. Note that '0' won't work, though
40 #define STUCK_TASK_COUNT 5 39 #define STUCK_TASK_COUNT 5
41 #define HAPPY_TASK_COUNT 20 40 #define HAPPY_TASK_COUNT 20
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // Do not start the task. 533 // Do not start the task.
535 // Note: this leaks memory, so don't do this. 534 // Note: this leaks memory, so don't do this.
536 // Instead, always run your tasks or delete them. 535 // Instead, always run your tasks or delete them.
537 new HappyTask(happy_task); 536 new HappyTask(happy_task);
538 537
539 // run the unblocked tasks 538 // run the unblocked tasks
540 task_runner.RunTasks(); 539 task_runner.RunTasks();
541 } 540 }
542 541
543 } // namespace rtc 542 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/stream_unittest.cc ('k') | webrtc/base/testclient_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698