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

Unified Diff: components/visitedlink/test/visitedlink_unittest.cc

Issue 1917673002: Convert //components/[u-z]* 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/visitedlink/browser/visitedlink_master.cc ('k') | components/wallpaper/wallpaper_manager_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/visitedlink/test/visitedlink_unittest.cc
diff --git a/components/visitedlink/test/visitedlink_unittest.cc b/components/visitedlink/test/visitedlink_unittest.cc
index 29a155d221f17673e74eba16c997cbb4a097bc82..cb99515fbc38675498c72f9dbde4858230f12939 100644
--- a/components/visitedlink/test/visitedlink_unittest.cc
+++ b/components/visitedlink/test/visitedlink_unittest.cc
@@ -6,6 +6,7 @@
#include <stdint.h>
#include <cstdio>
+#include <memory>
#include <string>
#include <vector>
@@ -245,7 +246,7 @@ class VisitedLinkTest : public testing::Test {
base::FilePath history_dir_;
base::FilePath visited_file_;
- scoped_ptr<VisitedLinkMaster> master_;
+ std::unique_ptr<VisitedLinkMaster> master_;
TestVisitedLinkDelegate delegate_;
content::TestBrowserThreadBundle thread_bundle_;
};
@@ -688,7 +689,7 @@ class VisitedLinkEventsTest : public content::RenderViewHostTestHarness {
VisitedLinkRenderProcessHostFactory vc_rph_factory_;
TestVisitedLinkDelegate delegate_;
- scoped_ptr<VisitedLinkMaster> master_;
+ std::unique_ptr<VisitedLinkMaster> master_;
};
TEST_F(VisitedLinkEventsTest, Coalescence) {
@@ -864,7 +865,7 @@ class VisitedLinkCompletelyResetEventTest : public VisitedLinkEventsTest {
void CreateVisitedLinkFile(content::BrowserContext* browser_context) {
base::FilePath visited_file =
browser_context->GetPath().Append(FILE_PATH_LITERAL("Visited Links"));
- scoped_ptr<VisitedLinkMaster> master(
+ std::unique_ptr<VisitedLinkMaster> master(
new VisitedLinkMaster(new TrackingVisitedLinkEventListener(),
&delegate_, true, true, visited_file, 0));
master->Init();
« no previous file with comments | « components/visitedlink/browser/visitedlink_master.cc ('k') | components/wallpaper/wallpaper_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698