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/create_presentation_connection_request.h" |
| 6 |
5 #include "base/bind.h" | 7 #include "base/bind.h" |
6 #include "chrome/browser/media/router/create_presentation_connection_request.h" | 8 #include "chrome/common/media_router/media_source_helper.h" |
7 #include "chrome/browser/media/router/media_source_helper.h" | |
8 #include "content/public/browser/presentation_service_delegate.h" | 9 #include "content/public/browser/presentation_service_delegate.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 | 11 |
11 namespace media_router { | 12 namespace media_router { |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 constexpr char kPresentationUrl1[] = "http://www.example.com/presentation.html"; | 16 constexpr char kPresentationUrl1[] = "http://www.example.com/presentation.html"; |
16 constexpr char kPresentationUrl2[] = "http://www.example.net/alternate.html"; | 17 constexpr char kPresentationUrl2[] = "http://www.example.net/alternate.html"; |
17 constexpr char kFrameUrl[] = "http://google.com"; | 18 constexpr char kFrameUrl[] = "http://google.com"; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 render_frame_host_id_, presentation_urls_, url::Origin(GURL(kFrameUrl)), | 105 render_frame_host_id_, presentation_urls_, url::Origin(GURL(kFrameUrl)), |
105 base::Bind(&CreatePresentationConnectionRequestTest::FailOnSuccess, | 106 base::Bind(&CreatePresentationConnectionRequestTest::FailOnSuccess, |
106 base::Unretained(this)), | 107 base::Unretained(this)), |
107 base::Bind(&CreatePresentationConnectionRequestTest::OnError, | 108 base::Bind(&CreatePresentationConnectionRequestTest::OnError, |
108 base::Unretained(this), error)); | 109 base::Unretained(this), error)); |
109 request.InvokeErrorCallback(error); | 110 request.InvokeErrorCallback(error); |
110 EXPECT_TRUE(cb_invoked_); | 111 EXPECT_TRUE(cb_invoked_); |
111 } | 112 } |
112 | 113 |
113 } // namespace media_router | 114 } // namespace media_router |
OLD | NEW |