| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/avda_codec_allocator.h" | 5 #include "media/gpu/avda_codec_allocator.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/single_thread_task_runner.h" |
| 13 #include "base/test/simple_test_tick_clock.h" | 14 #include "base/test/simple_test_tick_clock.h" |
| 14 #include "base/time/tick_clock.h" | 15 #include "base/time/tick_clock.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 using testing::Invoke; | 19 using testing::Invoke; |
| 19 using testing::NiceMock; | 20 using testing::NiceMock; |
| 20 using testing::_; | 21 using testing::_; |
| 21 | 22 |
| 22 namespace media { | 23 namespace media { |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 ->PostTask(FROM_HERE, | 231 ->PostTask(FROM_HERE, |
| 231 base::Bind(&SignalImmediately, &done_waiting_event)); | 232 base::Bind(&SignalImmediately, &done_waiting_event)); |
| 232 wait_event.Signal(); | 233 wait_event.Signal(); |
| 233 done_waiting_event.Wait(); | 234 done_waiting_event.Wait(); |
| 234 | 235 |
| 235 // Verify that we've un-failed over. | 236 // Verify that we've un-failed over. |
| 236 ASSERT_EQ(AUTO_CODEC, TaskTypeForAllocation(false)); | 237 ASSERT_EQ(AUTO_CODEC, TaskTypeForAllocation(false)); |
| 237 } | 238 } |
| 238 | 239 |
| 239 } // namespace media | 240 } // namespace media |
| OLD | NEW |