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

Side by Side Diff: chrome/common/media_router/issue_unittest.cc

Issue 2771413003: Move c/b/media/router/mojo/*.mojom to chrome/common/media_router/mojo/*.mojom (Closed)
Patch Set: Rebase Created 3 years, 8 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 "chrome/browser/media/router/issue.h" 5 #include "chrome/common/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698