OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h" | 5 #include "media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "base/single_thread_task_runner.h" |
8 #include "base/test/scoped_task_environment.h" | 9 #include "base/test/scoped_task_environment.h" |
9 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
10 #include "gpu/ipc/service/gpu_channel.h" | 11 #include "gpu/ipc/service/gpu_channel.h" |
11 #include "media/gpu/ipc/common/media_messages.h" | 12 #include "media/gpu/ipc/common/media_messages.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 using testing::_; | 16 using testing::_; |
16 using testing::SaveArg; | 17 using testing::SaveArg; |
17 using testing::InvokeWithoutArgs; | 18 using testing::InvokeWithoutArgs; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 EXPECT_CALL(*decoder_ptr, Decode(_, _)); | 123 EXPECT_CALL(*decoder_ptr, Decode(_, _)); |
123 io_task_runner->PostTaskAndReply( | 124 io_task_runner->PostTaskAndReply( |
124 FROM_HERE, | 125 FROM_HERE, |
125 base::Bind(&GpuJpegDecodeAcceleratorTest::SendStubFrame, | 126 base::Bind(&GpuJpegDecodeAcceleratorTest::SendStubFrame, |
126 base::Unretained(this), message_filter, kArbitraryRouteId), | 127 base::Unretained(this), message_filter, kArbitraryRouteId), |
127 run_loop2.QuitClosure()); | 128 run_loop2.QuitClosure()); |
128 run_loop2.Run(); | 129 run_loop2.Run(); |
129 } | 130 } |
130 | 131 |
131 } // namespace media | 132 } // namespace media |
OLD | NEW |