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

Side by Side Diff: content/public/test/layouttest_support.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory>
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/callback_forward.h" 14 #include "base/callback_forward.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "cc/layers/texture_layer.h" 15 #include "cc/layers/texture_layer.h"
16 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h" 16 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h"
17 17
18 class GURL; 18 class GURL;
19 19
20 namespace blink { 20 namespace blink {
21 class WebDeviceMotionData; 21 class WebDeviceMotionData;
22 class WebDeviceOrientationData; 22 class WebDeviceOrientationData;
23 class WebGamepad; 23 class WebGamepad;
24 class WebGamepads; 24 class WebGamepads;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void EnableWebTestProxyCreation( 68 void EnableWebTestProxyCreation(
69 const ViewProxyCreationCallback& view_proxy_creation_callback, 69 const ViewProxyCreationCallback& view_proxy_creation_callback,
70 const FrameProxyCreationCallback& frame_proxy_creation_callback); 70 const FrameProxyCreationCallback& frame_proxy_creation_callback);
71 71
72 typedef base::Callback<void(const blink::WebURLResponse& response, 72 typedef base::Callback<void(const blink::WebURLResponse& response,
73 const std::string& data)> FetchManifestCallback; 73 const std::string& data)> FetchManifestCallback;
74 void FetchManifest(blink::WebView* view, const GURL& url, 74 void FetchManifest(blink::WebView* view, const GURL& url,
75 const FetchManifestCallback&); 75 const FetchManifestCallback&);
76 76
77 // Sets gamepad provider to be used for layout tests. 77 // Sets gamepad provider to be used for layout tests.
78 void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider); 78 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider);
79 79
80 // Sets a double that should be used when registering 80 // Sets a double that should be used when registering
81 // a listener through BlinkPlatformImpl::setDeviceLightListener(). 81 // a listener through BlinkPlatformImpl::setDeviceLightListener().
82 void SetMockDeviceLightData(const double data); 82 void SetMockDeviceLightData(const double data);
83 83
84 // Sets WebDeviceMotionData that should be used when registering 84 // Sets WebDeviceMotionData that should be used when registering
85 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). 85 // a listener through BlinkPlatformImpl::setDeviceMotionListener().
86 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); 86 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data);
87 87
88 // Sets WebDeviceOrientationData that should be used when registering 88 // Sets WebDeviceOrientationData that should be used when registering
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void DisableAutoResizeMode(RenderView* render_view, 139 void DisableAutoResizeMode(RenderView* render_view,
140 const blink::WebSize& new_size); 140 const blink::WebSize& new_size);
141 141
142 // Provides a text dump of the contents of the given page state. 142 // Provides a text dump of the contents of the given page state.
143 std::string DumpBackForwardList(std::vector<PageState>& page_state, 143 std::string DumpBackForwardList(std::vector<PageState>& page_state,
144 size_t current_index); 144 size_t current_index);
145 145
146 } // namespace content 146 } // namespace content
147 147
148 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 148 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/public/test/content_test_suite_base.cc ('k') | content/public/test/mock_blob_url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698