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

Side by Side Diff: content/browser/presentation/presentation_service_impl_unittest.cc

Issue 1646823003: [Android] Disable PresentationServiceImplTest.ScreenAvailabilityNotSupported. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | 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 "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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698