OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // SequencedTaskRunnerTest defines tests that implementations of | 5 // SequencedTaskRunnerTest defines tests that implementations of |
6 // SequencedTaskRunner should pass in order to be conformant. | 6 // SequencedTaskRunner should pass in order to be conformant. |
7 // See task_runner_test_template.h for a description of how to use the | 7 // See task_runner_test_template.h for a description of how to use the |
8 // constructs in this file; these work the same. | 8 // constructs in this file; these work the same. |
9 | 9 |
10 #ifndef BASE_TEST_SEQUENCED_TASK_RUNNER_TEST_TEMPLATE_H_ | 10 #ifndef BASE_TEST_SEQUENCED_TASK_RUNNER_TEST_TEMPLATE_H_ |
11 #define BASE_TEST_SEQUENCED_TASK_RUNNER_TEST_TEMPLATE_H_ | 11 #define BASE_TEST_SEQUENCED_TASK_RUNNER_TEST_TEMPLATE_H_ |
12 | 12 |
13 #include <cstddef> | 13 #include <cstddef> |
14 #include <iosfwd> | 14 #include <iosfwd> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/basictypes.h" | |
18 #include "base/bind.h" | 17 #include "base/bind.h" |
19 #include "base/callback.h" | 18 #include "base/callback.h" |
| 19 #include "base/macros.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/sequenced_task_runner.h" | 21 #include "base/sequenced_task_runner.h" |
22 #include "base/synchronization/condition_variable.h" | 22 #include "base/synchronization/condition_variable.h" |
23 #include "base/synchronization/lock.h" | 23 #include "base/synchronization/lock.h" |
24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 namespace base { | 27 namespace base { |
28 | 28 |
29 namespace internal { | 29 namespace internal { |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 } | 345 } |
346 | 346 |
347 // SequencedTaskRunnerDelayedTest tests that the |delay| parameter of | 347 // SequencedTaskRunnerDelayedTest tests that the |delay| parameter of |
348 // is used to actually wait for |delay| ms before executing the task. | 348 // is used to actually wait for |delay| ms before executing the task. |
349 // This is not mandatory for a SequencedTaskRunner to be compliant. | 349 // This is not mandatory for a SequencedTaskRunner to be compliant. |
350 REGISTER_TYPED_TEST_CASE_P(SequencedTaskRunnerDelayedTest, DelayedTaskBasic); | 350 REGISTER_TYPED_TEST_CASE_P(SequencedTaskRunnerDelayedTest, DelayedTaskBasic); |
351 | 351 |
352 } // namespace base | 352 } // namespace base |
353 | 353 |
354 #endif // BASE_TEST_SEQUENCED_TASK_RUNNER_TEST_TEMPLATE_H_ | 354 #endif // BASE_TEST_SEQUENCED_TASK_RUNNER_TEST_TEMPLATE_H_ |
OLD | NEW |