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

Unified Diff: chrome/browser/media/router/create_presentation_session_request_unittest.cc

Issue 1259073004: [Presentation API] Change ListenForSessionMessages API to client-style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comments Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/router/create_presentation_session_request_unittest.cc
diff --git a/chrome/browser/media/router/create_presentation_session_request_unittest.cc b/chrome/browser/media/router/create_presentation_session_request_unittest.cc
index c198a0bc71d6825f940f5cb522bbc2c9e34db9b1..ba0b6d6c5f96886f03e5549645755cb6499184e8 100644
--- a/chrome/browser/media/router/create_presentation_session_request_unittest.cc
+++ b/chrome/browser/media/router/create_presentation_session_request_unittest.cc
@@ -86,7 +86,7 @@ TEST_F(CreatePresentationSessionRequestTest, SuccessCallback) {
base::Unretained(this), session_info),
base::Bind(&CreatePresentationSessionRequestTest::FailOnError,
base::Unretained(this)));
- context.MaybeInvokeSuccessCallback(kRouteId);
+ context.MaybeInvokeSuccessCallback(kPresentationId, kRouteId);
// No-op since success callback is already invoked.
context.MaybeInvokeErrorCallback(content::PresentationError(
content::PRESENTATION_ERROR_NO_AVAILABLE_SCREENS, "Error message"));
@@ -108,7 +108,7 @@ TEST_F(CreatePresentationSessionRequestTest, ErrorCallback) {
base::Unretained(this), error));
context.MaybeInvokeErrorCallback(error);
// No-op since error callback is already invoked.
- context.MaybeInvokeSuccessCallback(kRouteId);
+ context.MaybeInvokeSuccessCallback(kPresentationId, kRouteId);
EXPECT_TRUE(cb_invoked_);
}
« no previous file with comments | « chrome/browser/media/router/create_presentation_session_request.cc ('k') | chrome/browser/media/router/media_route.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698