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 "chrome/browser/media/router/mojo/media_router_struct_traits.h" | 5 #include "components/media_router/mojo/media_router_struct_traits.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "chrome/browser/media/router/discovery/media_sink_internal.h" | 8 #include "components/media_router/discovery/media_sink_internal.h" |
9 #include "chrome/browser/media/router/mojo/media_router.mojom.h" | 9 #include "components/media_router/mojo/media_router.mojom.h" |
10 #include "chrome/browser/media/router/mojo/media_router_traits_test_service.mojo
m.h" | 10 #include "components/media_router/mojo/media_router_traits_test_service.mojom.h" |
11 #include "mojo/public/cpp/bindings/binding_set.h" | 11 #include "mojo/public/cpp/bindings/binding_set.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace media_router { | 14 namespace media_router { |
15 | 15 |
16 class MediaRouterStructTraitsTest | 16 class MediaRouterStructTraitsTest |
17 : public testing::Test, | 17 : public testing::Test, |
18 public media_router::mojom::MediaRouterTraitsTestService { | 18 public media_router::mojom::MediaRouterTraitsTestService { |
19 public: | 19 public: |
20 MediaRouterStructTraitsTest() {} | 20 MediaRouterStructTraitsTest() {} |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 proxy->EchoMediaSink(generic_sink, &output); | 108 proxy->EchoMediaSink(generic_sink, &output); |
109 | 109 |
110 EXPECT_EQ(sink_id, output.sink().id()); | 110 EXPECT_EQ(sink_id, output.sink().id()); |
111 EXPECT_EQ(sink_name, output.sink().name()); | 111 EXPECT_EQ(sink_name, output.sink().name()); |
112 EXPECT_EQ(icon_type, output.sink().icon_type()); | 112 EXPECT_EQ(icon_type, output.sink().icon_type()); |
113 EXPECT_FALSE(output.is_cast_sink()); | 113 EXPECT_FALSE(output.is_cast_sink()); |
114 EXPECT_FALSE(output.is_dial_sink()); | 114 EXPECT_FALSE(output.is_dial_sink()); |
115 } | 115 } |
116 | 116 |
117 } // namespace media_router | 117 } // namespace media_router |
OLD | NEW |