Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: content/renderer/media/render_media_log_unittest.cc

Issue 2720403003: Remove the MessageLoop::DestructionObserver from mojo bindings. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Verify contents. There should only be a single buffered extents changed 118 // Verify contents. There should only be a single buffered extents changed
118 // event. 119 // event.
119 std::vector<media::MediaLogEvent> events = GetMediaLogEvents(); 120 std::vector<media::MediaLogEvent> events = GetMediaLogEvents();
120 ASSERT_EQ(3u, events.size()); 121 ASSERT_EQ(3u, events.size());
121 EXPECT_EQ(media::MediaLogEvent::LOAD, events[0].type); 122 EXPECT_EQ(media::MediaLogEvent::LOAD, events[0].type);
122 EXPECT_EQ(media::MediaLogEvent::SEEK, events[1].type); 123 EXPECT_EQ(media::MediaLogEvent::SEEK, events[1].type);
123 EXPECT_EQ(media::MediaLogEvent::BUFFERED_EXTENTS_CHANGED, events[2].type); 124 EXPECT_EQ(media::MediaLogEvent::BUFFERED_EXTENTS_CHANGED, events[2].type);
124 } 125 }
125 126
126 } // namespace content 127 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698