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 "chrome/browser/media/router/issue.h" | 5 #include "components/media_router/issue.h" |
| 6 |
6 #include "testing/gmock/include/gmock/gmock.h" | 7 #include "testing/gmock/include/gmock/gmock.h" |
7 | 8 |
8 namespace media_router { | 9 namespace media_router { |
9 | 10 |
10 namespace { | 11 namespace { |
11 | 12 |
12 IssueInfo CreateWarningIssueInfo(IssueInfo::Action action_type) { | 13 IssueInfo CreateWarningIssueInfo(IssueInfo::Action action_type) { |
13 IssueInfo issue("title", action_type, IssueInfo::Severity::WARNING); | 14 IssueInfo issue("title", action_type, IssueInfo::Severity::WARNING); |
14 issue.message = "message"; | 15 issue.message = "message"; |
15 issue.help_page_id = 12345; | 16 issue.help_page_id = 12345; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 EXPECT_EQ("", issue3.message); | 108 EXPECT_EQ("", issue3.message); |
108 EXPECT_EQ(IssueInfo::Action::LEARN_MORE, issue3.default_action); | 109 EXPECT_EQ(IssueInfo::Action::LEARN_MORE, issue3.default_action); |
109 EXPECT_FALSE(issue3.secondary_actions.empty()); | 110 EXPECT_FALSE(issue3.secondary_actions.empty()); |
110 EXPECT_EQ(1u, issue3.secondary_actions.size()); | 111 EXPECT_EQ(1u, issue3.secondary_actions.size()); |
111 EXPECT_EQ(IssueInfo::Severity::FATAL, issue3.severity); | 112 EXPECT_EQ(IssueInfo::Severity::FATAL, issue3.severity); |
112 EXPECT_EQ("routeid", issue3.route_id); | 113 EXPECT_EQ("routeid", issue3.route_id); |
113 EXPECT_TRUE(issue3.is_blocking); | 114 EXPECT_TRUE(issue3.is_blocking); |
114 } | 115 } |
115 | 116 |
116 } // namespace media_router | 117 } // namespace media_router |
OLD | NEW |