| OLD | NEW |
| 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> |
| 6 |
| 5 #include "chrome/browser/media/router/issue.h" | 7 #include "chrome/browser/media/router/issue.h" |
| 6 #include "chrome/browser/media/router/media_router_type_converters.h" | 8 #include "chrome/browser/media/router/media_router_type_converters.h" |
| 7 #include "chrome/browser/media/router/media_sink.h" | 9 #include "chrome/browser/media/router/media_sink.h" |
| 8 #include "chrome/browser/media/router/media_source_helper.h" | 10 #include "chrome/browser/media/router/media_source_helper.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 10 | 12 |
| 11 namespace media_router { | 13 namespace media_router { |
| 12 | 14 |
| 13 TEST(MediaRouterTypeConvertersTest, ConvertMediaSink) { | 15 TEST(MediaRouterTypeConvertersTest, ConvertMediaSink) { |
| 14 MediaSink expected_media_sink("sinkId1", "Sink 1", MediaSink::IconType::CAST); | 16 MediaSink expected_media_sink("sinkId1", "Sink 1", MediaSink::IconType::CAST); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 EXPECT_EQ(0u, converted_issue.secondary_actions().size()); | 180 EXPECT_EQ(0u, converted_issue.secondary_actions().size()); |
| 179 EXPECT_EQ(expected_issue.severity(), converted_issue.severity()); | 181 EXPECT_EQ(expected_issue.severity(), converted_issue.severity()); |
| 180 EXPECT_EQ(expected_issue.is_blocking(), converted_issue.is_blocking()); | 182 EXPECT_EQ(expected_issue.is_blocking(), converted_issue.is_blocking()); |
| 181 | 183 |
| 182 // Ensure that the internal Issue objects are considered distinct | 184 // Ensure that the internal Issue objects are considered distinct |
| 183 // (they possess different IDs.) | 185 // (they possess different IDs.) |
| 184 EXPECT_FALSE(converted_issue.Equals(expected_issue)); | 186 EXPECT_FALSE(converted_issue.Equals(expected_issue)); |
| 185 } | 187 } |
| 186 | 188 |
| 187 } // namespace media_router | 189 } // namespace media_router |
| OLD | NEW |