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

Side by Side Diff: chrome/browser/media/router/mojo/media_router_mojo_impl_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: 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
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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 interfaces::IssuePtr CreateMojoIssue(const std::string& title) { 95 interfaces::IssuePtr CreateMojoIssue(const std::string& title) {
96 interfaces::IssuePtr mojoIssue = interfaces::Issue::New(); 96 interfaces::IssuePtr mojoIssue = interfaces::Issue::New();
97 mojoIssue->title = title; 97 mojoIssue->title = title;
98 mojoIssue->message = "msg"; 98 mojoIssue->message = "msg";
99 mojoIssue->route_id = ""; 99 mojoIssue->route_id = "";
100 mojoIssue->default_action = interfaces::Issue::ActionType::DISMISS; 100 mojoIssue->default_action = interfaces::Issue::ActionType::DISMISS;
101 mojoIssue->secondary_actions = 101 mojoIssue->secondary_actions =
102 mojo::Array<interfaces::Issue::ActionType>::New(0); 102 mojo::Array<interfaces::Issue::ActionType>::New(0);
103 mojoIssue->severity = interfaces::Issue::Severity::WARNING; 103 mojoIssue->severity = interfaces::Issue::Severity::WARNING;
104 mojoIssue->is_blocking = false; 104 mojoIssue->is_blocking = false;
105 mojoIssue->help_url = ""; 105 mojoIssue->help_page_id = -1;
106 return mojoIssue; 106 return mojoIssue;
107 } 107 }
108 108
109 interfaces::MediaRoutePtr CreateMojoRoute() { 109 interfaces::MediaRoutePtr CreateMojoRoute() {
110 interfaces::MediaRoutePtr route = interfaces::MediaRoute::New(); 110 interfaces::MediaRoutePtr route = interfaces::MediaRoute::New();
111 route->media_source = kSource; 111 route->media_source = kSource;
112 route->media_sink_id = kSinkId; 112 route->media_sink_id = kSinkId;
113 route->media_route_id = kRouteId; 113 route->media_route_id = kRouteId;
114 route->description = kDescription; 114 route->description = kDescription;
115 route->is_local = true; 115 route->is_local = true;
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 EXPECT_CALL(mock_media_route_provider_, 1632 EXPECT_CALL(mock_media_route_provider_,
1633 UpdateMediaSinks(mojo::String(MediaSourceForDesktop().id()))) 1633 UpdateMediaSinks(mojo::String(MediaSourceForDesktop().id())))
1634 .WillOnce(InvokeWithoutArgs([&run_loop2]() { 1634 .WillOnce(InvokeWithoutArgs([&run_loop2]() {
1635 run_loop2.Quit(); 1635 run_loop2.Quit();
1636 })); 1636 }));
1637 1637
1638 run_loop2.Run(); 1638 run_loop2.Run();
1639 } 1639 }
1640 1640
1641 } // namespace media_router 1641 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698