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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "base/test/test_timeouts.h" 12 #include "base/test/test_timeouts.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "content/browser/presentation/presentation_service_impl.h" 14 #include "content/browser/presentation/presentation_service_impl.h"
15 #include "content/public/browser/presentation_service_delegate.h" 15 #include "content/public/browser/presentation_service_delegate.h"
16 #include "content/public/browser/presentation_session.h" 16 #include "content/public/browser/presentation_session.h"
17 #include "content/public/common/presentation_constants.h" 17 #include "content/public/common/presentation_constants.h"
18 #include "content/test/test_render_frame_host.h" 18 #include "content/test/test_render_frame_host.h"
19 #include "content/test/test_render_view_host.h" 19 #include "content/test/test_render_view_host.h"
20 #include "content/test/test_web_contents.h" 20 #include "content/test/test_web_contents.h"
21 #include "mojo/public/cpp/bindings/interface_ptr.h"
22 #include "mojo/public/cpp/bindings/string.h"
21 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
22 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr.h"
23 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h"
24 24
25 using ::testing::_; 25 using ::testing::_;
26 using ::testing::Eq; 26 using ::testing::Eq;
27 using ::testing::InvokeWithoutArgs; 27 using ::testing::InvokeWithoutArgs;
28 using ::testing::Mock; 28 using ::testing::Mock;
29 using ::testing::Return; 29 using ::testing::Return;
30 using ::testing::SaveArg; 30 using ::testing::SaveArg;
31 31
32 namespace content { 32 namespace content {
33 33
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 780
781 TEST_F(PresentationServiceImplTest, ScreenAvailabilityNotSupported) { 781 TEST_F(PresentationServiceImplTest, ScreenAvailabilityNotSupported) {
782 mock_delegate_.set_screen_availability_listening_supported(false); 782 mock_delegate_.set_screen_availability_listening_supported(false);
783 EXPECT_CALL(mock_client_, 783 EXPECT_CALL(mock_client_,
784 OnScreenAvailabilityNotSupported(Eq(kPresentationUrl))); 784 OnScreenAvailabilityNotSupported(Eq(kPresentationUrl)));
785 785
786 ListenForScreenAvailabilityAndWait(kPresentationUrl, false); 786 ListenForScreenAvailabilityAndWait(kPresentationUrl, false);
787 } 787 }
788 788
789 } // namespace content 789 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/presentation/presentation_service_impl.h ('k') | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698