| 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 // This class defines tests that implementations of TaskRunner should | 5 // This class defines tests that implementations of TaskRunner should |
| 6 // pass in order to be conformant. Here's how you use it to test your | 6 // pass in order to be conformant. Here's how you use it to test your |
| 7 // implementation. | 7 // implementation. |
| 8 // | 8 // |
| 9 // Say your class is called MyTaskRunner. Then you need to define a | 9 // Say your class is called MyTaskRunner. Then you need to define a |
| 10 // class called MyTaskRunnerTestDelegate in my_task_runner_unittest.cc | 10 // class called MyTaskRunnerTestDelegate in my_task_runner_unittest.cc |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 EXPECT_EQ(expected_task_run_counts, | 206 EXPECT_EQ(expected_task_run_counts, |
| 207 this->task_tracker_->GetTaskRunCounts()); | 207 this->task_tracker_->GetTaskRunCounts()); |
| 208 } | 208 } |
| 209 | 209 |
| 210 REGISTER_TYPED_TEST_CASE_P( | 210 REGISTER_TYPED_TEST_CASE_P( |
| 211 TaskRunnerTest, Basic, Delayed, RunsTasksOnCurrentThread); | 211 TaskRunnerTest, Basic, Delayed, RunsTasksOnCurrentThread); |
| 212 | 212 |
| 213 } // namespace base | 213 } // namespace base |
| 214 | 214 |
| 215 #endif //#define BASE_TEST_TASK_RUNNER_TEST_TEMPLATE_H_ | 215 #endif // BASE_TEST_TASK_RUNNER_TEST_TEMPLATE_H_ |
| OLD | NEW |