| 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 "chrome/common/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 "chrome/common/media_router/discovery/media_sink_internal.h" |
| 9 #include "chrome/browser/media/router/mojo/media_router.mojom.h" | 9 #include "chrome/common/media_router/mojo/media_router.mojom.h" |
| 10 #include "chrome/browser/media/router/mojo/media_router_traits_test_service.mojo
m.h" | 10 #include "chrome/common/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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 generic_sink.set_sink(sink); | 93 generic_sink.set_sink(sink); |
| 94 | 94 |
| 95 mojom::MediaRouterTraitsTestServicePtr proxy = GetTraitsTestProxy(); | 95 mojom::MediaRouterTraitsTestServicePtr proxy = GetTraitsTestProxy(); |
| 96 MediaSinkInternal output; | 96 MediaSinkInternal output; |
| 97 proxy->EchoMediaSink(generic_sink, &output); | 97 proxy->EchoMediaSink(generic_sink, &output); |
| 98 | 98 |
| 99 EXPECT_EQ(generic_sink, output); | 99 EXPECT_EQ(generic_sink, output); |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace media_router | 102 } // namespace media_router |
| OLD | NEW |