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

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

Issue 2189533002: Add media Remoter mojo interface and RendererWMPDelegate accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GYP target/deps. Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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> 5 #include <stddef.h>
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "content/public/renderer/media_stream_renderer_factory.h" 9 #include "content/public/renderer/media_stream_renderer_factory.h"
10 #include "content/renderer/media/webmediaplayer_ms.h" 10 #include "content/renderer/media/webmediaplayer_ms.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 void PlayerGone(int delegate_id) override { 72 void PlayerGone(int delegate_id) override {
73 EXPECT_EQ(delegate_id_, delegate_id); 73 EXPECT_EQ(delegate_id_, delegate_id);
74 is_gone_ = true; 74 is_gone_ = true;
75 } 75 }
76 76
77 bool IsHidden() override { return is_hidden_; } 77 bool IsHidden() override { return is_hidden_; }
78 78
79 void set_hidden(bool is_hidden) { is_hidden_ = is_hidden; } 79 void set_hidden(bool is_hidden) { is_hidden_ = is_hidden; }
80 80
81 media::mojom::Remoter* GetRemoter() override { return nullptr; }
82
81 private: 83 private:
82 int delegate_id_ = 1234; 84 int delegate_id_ = 1234;
83 Observer* observer_ = nullptr; 85 Observer* observer_ = nullptr;
84 bool playing_ = false; 86 bool playing_ = false;
85 bool is_hidden_ = false; 87 bool is_hidden_ = false;
86 bool is_gone_ = true; 88 bool is_gone_ = true;
87 89
88 DISALLOW_COPY_AND_ASSIGN(FakeWebMediaPlayerDelegate); 90 DISALLOW_COPY_AND_ASSIGN(FakeWebMediaPlayerDelegate);
89 }; 91 };
90 92
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 // OnShown() should restart after a forced suspension. 872 // OnShown() should restart after a forced suspension.
871 player_->OnShown(); 873 player_->OnShown();
872 EXPECT_FALSE(player_->paused()); 874 EXPECT_FALSE(player_->paused());
873 EXPECT_CALL(*this, DoSetWebLayer(false)); 875 EXPECT_CALL(*this, DoSetWebLayer(false));
874 876
875 message_loop_.RunUntilIdle(); 877 message_loop_.RunUntilIdle();
876 } 878 }
877 #endif 879 #endif
878 880
879 } // namespace content 881 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698