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

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

Issue 2608513002: Remove mojo::String. (Closed)
Patch Set: rebase Created 3 years, 11 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 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 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/run_loop.h" 16 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
18 #include "base/test/test_timeouts.h" 18 #include "base/test/test_timeouts.h"
19 #include "base/threading/thread_task_runner_handle.h" 19 #include "base/threading/thread_task_runner_handle.h"
20 #include "content/public/browser/presentation_service_delegate.h" 20 #include "content/public/browser/presentation_service_delegate.h"
21 #include "content/public/browser/presentation_session.h" 21 #include "content/public/browser/presentation_session.h"
22 #include "content/public/common/presentation_constants.h" 22 #include "content/public/common/presentation_constants.h"
23 #include "content/test/test_render_frame_host.h" 23 #include "content/test/test_render_frame_host.h"
24 #include "content/test/test_render_view_host.h" 24 #include "content/test/test_render_view_host.h"
25 #include "content/test/test_web_contents.h" 25 #include "content/test/test_web_contents.h"
26 #include "mojo/public/cpp/bindings/interface_ptr.h" 26 #include "mojo/public/cpp/bindings/interface_ptr.h"
27 #include "mojo/public/cpp/bindings/string.h"
28 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
29 28
30 using ::testing::_; 29 using ::testing::_;
31 using ::testing::ByRef; 30 using ::testing::ByRef;
32 using ::testing::Eq; 31 using ::testing::Eq;
33 using ::testing::InvokeWithoutArgs; 32 using ::testing::InvokeWithoutArgs;
34 using ::testing::Mock; 33 using ::testing::Mock;
35 using ::testing::Return; 34 using ::testing::Return;
36 using ::testing::SaveArg; 35 using ::testing::SaveArg;
37 36
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 mock_delegate_.set_screen_availability_listening_supported(false); 865 mock_delegate_.set_screen_availability_listening_supported(false);
867 base::RunLoop run_loop; 866 base::RunLoop run_loop;
868 EXPECT_CALL(mock_client_, 867 EXPECT_CALL(mock_client_,
869 OnScreenAvailabilityNotSupported(presentation_url1_)) 868 OnScreenAvailabilityNotSupported(presentation_url1_))
870 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); 869 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit));
871 ListenForScreenAvailabilityAndWait(presentation_url1_, false); 870 ListenForScreenAvailabilityAndWait(presentation_url1_, false);
872 run_loop.Run(); 871 run_loop.Run();
873 } 872 }
874 873
875 } // namespace content 874 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mime_registry_impl.cc ('k') | content/browser/renderer_host/offscreen_canvas_surface_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698