OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 <tuple> | 5 #include <tuple> |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" |
8 #include "base/test/simple_test_tick_clock.h" | 9 #include "base/test/simple_test_tick_clock.h" |
9 #include "base/test/test_mock_time_task_runner.h" | 10 #include "base/test/test_mock_time_task_runner.h" |
10 #include "content/common/view_messages.h" | 11 #include "content/common/view_messages.h" |
11 #include "content/public/test/mock_render_thread.h" | 12 #include "content/public/test/mock_render_thread.h" |
12 #include "content/renderer/media/render_media_log.h" | 13 #include "content/renderer/media/render_media_log.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 class RenderMediaLogTest : public testing::Test { | 18 class RenderMediaLogTest : public testing::Test { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // Verify contents. There should only be a single buffered extents changed | 141 // Verify contents. There should only be a single buffered extents changed |
141 // event. | 142 // event. |
142 std::vector<media::MediaLogEvent> events = GetMediaLogEvents(); | 143 std::vector<media::MediaLogEvent> events = GetMediaLogEvents(); |
143 ASSERT_EQ(3u, events.size()); | 144 ASSERT_EQ(3u, events.size()); |
144 EXPECT_EQ(media::MediaLogEvent::LOAD, events[0].type); | 145 EXPECT_EQ(media::MediaLogEvent::LOAD, events[0].type); |
145 EXPECT_EQ(media::MediaLogEvent::SEEK, events[1].type); | 146 EXPECT_EQ(media::MediaLogEvent::SEEK, events[1].type); |
146 EXPECT_EQ(media::MediaLogEvent::DURATION_SET, events[2].type); | 147 EXPECT_EQ(media::MediaLogEvent::DURATION_SET, events[2].type); |
147 } | 148 } |
148 | 149 |
149 } // namespace content | 150 } // namespace content |
OLD | NEW |