OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include <stddef.h> |
| 6 |
5 #include "base/bind.h" | 7 #include "base/bind.h" |
6 #include "base/debug/stack_trace.h" | 8 #include "base/debug/stack_trace.h" |
| 9 #include "base/macros.h" |
7 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
8 #include "media/base/pipeline_status.h" | 11 #include "media/base/pipeline_status.h" |
9 #include "media/base/serial_runner.h" | 12 #include "media/base/serial_runner.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
11 | 14 |
12 namespace media { | 15 namespace media { |
13 | 16 |
14 class SerialRunnerTest : public ::testing::Test { | 17 class SerialRunnerTest : public ::testing::Test { |
15 public: | 18 public: |
16 SerialRunnerTest() | 19 SerialRunnerTest() |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 TEST_F(SerialRunnerTest, Closure) { | 222 TEST_F(SerialRunnerTest, Closure) { |
220 PushClosure(); | 223 PushClosure(); |
221 RunSerialRunner(); | 224 RunSerialRunner(); |
222 | 225 |
223 EXPECT_TRUE(called(0)); | 226 EXPECT_TRUE(called(0)); |
224 EXPECT_TRUE(done_called()); | 227 EXPECT_TRUE(done_called()); |
225 EXPECT_EQ(PIPELINE_OK, done_status()); | 228 EXPECT_EQ(PIPELINE_OK, done_status()); |
226 } | 229 } |
227 | 230 |
228 } // namespace media | 231 } // namespace media |
OLD | NEW |