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 "content/browser/presentation/presentation_service_impl.h" | 5 #include "content/browser/presentation/presentation_service_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 // Exceeded maximum queue size, should invoke mojo callback with error. | 794 // Exceeded maximum queue size, should invoke mojo callback with error. |
795 service_ptr_->JoinSession( | 795 service_ptr_->JoinSession( |
796 base::StringPrintf(presentation_url, i), | 796 base::StringPrintf(presentation_url, i), |
797 base::StringPrintf(presentation_id, i), | 797 base::StringPrintf(presentation_id, i), |
798 base::Bind( | 798 base::Bind( |
799 &PresentationServiceImplTest::ExpectNewSessionMojoCallbackError, | 799 &PresentationServiceImplTest::ExpectNewSessionMojoCallbackError, |
800 base::Unretained(this))); | 800 base::Unretained(this))); |
801 SaveQuitClosureAndRunLoop(); | 801 SaveQuitClosureAndRunLoop(); |
802 } | 802 } |
803 | 803 |
804 TEST_F(PresentationServiceImplTest, ScreenAvailabilityNotSupported) { | 804 #if defined(OS_ANDROID) |
| 805 #define MAYBE_ScreenAvailabilityNotSupported DISABLED_ScreenAvailabilityNotSuppo
rted |
| 806 #else |
| 807 #define MAYBE_ScreenAvailabilityNotSupported ScreenAvailabilityNotSupported |
| 808 #endif |
| 809 // Flaky on some android bots, see crbug.com/581878. |
| 810 TEST_F(PresentationServiceImplTest, MAYBE_ScreenAvailabilityNotSupported) { |
805 mock_delegate_.set_screen_availability_listening_supported(false); | 811 mock_delegate_.set_screen_availability_listening_supported(false); |
806 EXPECT_CALL(mock_client_, | 812 EXPECT_CALL(mock_client_, |
807 OnScreenAvailabilityNotSupported(Eq(kPresentationUrl))); | 813 OnScreenAvailabilityNotSupported(Eq(kPresentationUrl))); |
808 | 814 |
809 ListenForScreenAvailabilityAndWait(kPresentationUrl, false); | 815 ListenForScreenAvailabilityAndWait(kPresentationUrl, false); |
810 } | 816 } |
811 | 817 |
812 } // namespace content | 818 } // namespace content |
OLD | NEW |