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

Side by Side Diff: chrome/browser/media/router/issue_manager_unittest.cc

Issue 1993373002: [Media Router] Consistently refer to issue's learn more help page by ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per imcheng@'s comments. Created 4 years, 7 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
« no previous file with comments | « chrome/browser/media/router/issue.cc ('k') | chrome/browser/media/router/issue_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/media/router/issue_manager.h" 9 #include "chrome/browser/media/router/issue_manager.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace media_router { 12 namespace media_router {
13 namespace { 13 namespace {
14 14
15 const char kTestRouteId[] = "routeId"; 15 const char kTestRouteId[] = "routeId";
16 16
17 Issue CreateTestIssue(const std::string& route_id) { 17 Issue CreateTestIssue(const std::string& route_id) {
18 return Issue("title", "message", IssueAction(IssueAction::TYPE_DISMISS), 18 return Issue("title", "message", IssueAction(IssueAction::TYPE_DISMISS),
19 std::vector<IssueAction>(), route_id, Issue::WARNING, false, 19 std::vector<IssueAction>(), route_id, Issue::WARNING, false,
20 "http://www.example.com/help"); 20 12345);
21 } 21 }
22 22
23 class IssueManagerUnitTest : public ::testing::Test { 23 class IssueManagerUnitTest : public ::testing::Test {
24 protected: 24 protected:
25 IssueManagerUnitTest() {} 25 IssueManagerUnitTest() {}
26 ~IssueManagerUnitTest() override {} 26 ~IssueManagerUnitTest() override {}
27 27
28 IssueManager manager_; 28 IssueManager manager_;
29 29
30 private: 30 private:
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 manager_.ClearIssuesWithRouteId(route_id_one); 135 manager_.ClearIssuesWithRouteId(route_id_one);
136 EXPECT_EQ(20u, manager_.GetIssueCount()); 136 EXPECT_EQ(20u, manager_.GetIssueCount());
137 137
138 // Remove all routes with route_id_two. 138 // Remove all routes with route_id_two.
139 manager_.ClearIssuesWithRouteId(route_id_two); 139 manager_.ClearIssuesWithRouteId(route_id_two);
140 EXPECT_EQ(10u, manager_.GetIssueCount()); 140 EXPECT_EQ(10u, manager_.GetIssueCount());
141 } 141 }
142 142
143 } // namespace 143 } // namespace
144 } // namespace media_router 144 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/browser/media/router/issue.cc ('k') | chrome/browser/media/router/issue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698