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

Side by Side Diff: content/renderer/presentation/presentation_dispatcher_unittest.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 9 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 <memory> 5 #include <memory>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "content/public/test/test_browser_thread_bundle.h" 9 #include "content/public/test/test_browser_thread_bundle.h"
10 #include "content/renderer/presentation/presentation_connection_proxy.h" 10 #include "content/renderer/presentation/presentation_connection_proxy.h"
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 } 709 }
710 EXPECT_CALL(presentation_service_, StopListeningForScreenAvailability(gurl1_)) 710 EXPECT_CALL(presentation_service_, StopListeningForScreenAvailability(gurl1_))
711 .Times(1); 711 .Times(1);
712 EXPECT_CALL(presentation_service_, StopListeningForScreenAvailability(gurl2_)) 712 EXPECT_CALL(presentation_service_, StopListeningForScreenAvailability(gurl2_))
713 .Times(0); 713 .Times(0);
714 EXPECT_CALL(presentation_service_, StopListeningForScreenAvailability(gurl3_)) 714 EXPECT_CALL(presentation_service_, StopListeningForScreenAvailability(gurl3_))
715 .Times(0); 715 .Times(0);
716 716
717 // Set up |availability_set_| and |listening_status_| 717 // Set up |availability_set_| and |listening_status_|
718 base::RunLoop run_loop; 718 base::RunLoop run_loop;
719 for (auto& mock_observer : mock_observers_) { 719 for (auto* mock_observer : mock_observers_) {
720 client()->getAvailability( 720 client()->getAvailability(
721 mock_observer->urls(), 721 mock_observer->urls(),
722 base::MakeUnique<WebPresentationAvailabilityCallbacks>()); 722 base::MakeUnique<WebPresentationAvailabilityCallbacks>());
723 } 723 }
724 724
725 for (auto* mock_observer : mock_observers_) 725 for (auto* mock_observer : mock_observers_)
726 client()->startListening(mock_observer); 726 client()->startListening(mock_observer);
727 727
728 EXPECT_CALL(mock_observer1_, availabilityChanged(false)); 728 EXPECT_CALL(mock_observer1_, availabilityChanged(false));
729 EXPECT_CALL(mock_observer2_, availabilityChanged(false)); 729 EXPECT_CALL(mock_observer2_, availabilityChanged(false));
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 783
784 for (auto* mock_observer : mock_observers_) 784 for (auto* mock_observer : mock_observers_)
785 EXPECT_CALL(*mock_observer, availabilityChanged(false)); 785 EXPECT_CALL(*mock_observer, availabilityChanged(false));
786 786
787 base::RunLoop run_loop_2; 787 base::RunLoop run_loop_2;
788 ChangeURLState(gurl2_, URLState::Unavailable); 788 ChangeURLState(gurl2_, URLState::Unavailable);
789 run_loop_2.RunUntilIdle(); 789 run_loop_2.RunUntilIdle();
790 } 790 }
791 791
792 } // namespace content 792 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/image_downloader/image_downloader_base.cc ('k') | content/shell/test_runner/mock_web_speech_recognizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698