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

Unified Diff: components/test_runner/web_test_interfaces.h

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/web_frame_test_proxy.h ('k') | components/test_runner/web_test_interfaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_interfaces.h
diff --git a/components/test_runner/web_test_interfaces.h b/components/test_runner/web_test_interfaces.h
index a1a6c0af21a5596763cf26a412caaa87b3d8c954..4a0d5a773fa7f0a4a53d915de38c1a9d7d32238e 100644
--- a/components/test_runner/web_test_interfaces.h
+++ b/components/test_runner/web_test_interfaces.h
@@ -5,10 +5,10 @@
#ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
#define COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/test_runner/test_runner_export.h"
namespace blink {
@@ -62,7 +62,7 @@ class TEST_RUNNER_EXPORT WebTestInterfaces {
blink::WebAudioDevice* CreateAudioDevice(double sample_rate);
- scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient();
+ std::unique_ptr<blink::WebAppBannerClient> CreateAppBannerClient();
TestInterfaces* GetTestInterfaces();
@@ -70,21 +70,21 @@ class TEST_RUNNER_EXPORT WebTestInterfaces {
// forwarding javascript console output to the test harness). The caller
// should guarantee that the returned object won't be used beyond the lifetime
// of WebTestInterfaces and/or the lifetime of |web_test_proxy_base|.
- scoped_ptr<WebFrameTestClient> CreateWebFrameTestClient(
+ std::unique_ptr<WebFrameTestClient> CreateWebFrameTestClient(
WebTestProxyBase* web_test_proxy_base);
// Creates a WebViewClient implementation providing test behavior (i.e.
// providing a mocked speech recognizer). The caller should guarantee that
// the returned pointer won't be used beyond the lifetime of WebTestInterfaces
// and/or the lifetime of |web_test_proxy_base|.
- scoped_ptr<WebViewTestClient> CreateWebViewTestClient(
+ std::unique_ptr<WebViewTestClient> CreateWebViewTestClient(
WebTestProxyBase* web_test_proxy_base);
// Gets a list of currently opened windows created by the current test.
std::vector<blink::WebView*> GetWindowList();
private:
- scoped_ptr<TestInterfaces> interfaces_;
+ std::unique_ptr<TestInterfaces> interfaces_;
DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces);
};
« no previous file with comments | « components/test_runner/web_frame_test_proxy.h ('k') | components/test_runner/web_test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698