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

Unified Diff: components/sessions/content/content_serialized_navigation_builder_unittest.cc

Issue 1912843002: Convert //components/sessions 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
Index: components/sessions/content/content_serialized_navigation_builder_unittest.cc
diff --git a/components/sessions/content/content_serialized_navigation_builder_unittest.cc b/components/sessions/content/content_serialized_navigation_builder_unittest.cc
index 4259d32ac9bc5f51ab4f59969003f9c17f942831..6592e40a76c85ef46561f691956c1b406b57d2bd 100644
--- a/components/sessions/content/content_serialized_navigation_builder_unittest.cc
+++ b/components/sessions/content/content_serialized_navigation_builder_unittest.cc
@@ -17,8 +17,8 @@ namespace sessions {
namespace {
// Create a NavigationEntry from the test_data constants in
// serialized_navigation_entry_test_helper.h.
-scoped_ptr<content::NavigationEntry> MakeNavigationEntryForTest() {
- scoped_ptr<content::NavigationEntry> navigation_entry(
+std::unique_ptr<content::NavigationEntry> MakeNavigationEntryForTest() {
+ std::unique_ptr<content::NavigationEntry> navigation_entry(
content::NavigationEntry::Create());
navigation_entry->SetReferrer(content::Referrer(
test_data::kReferrerURL,
@@ -52,7 +52,7 @@ scoped_ptr<content::NavigationEntry> MakeNavigationEntryForTest() {
// Create a SerializedNavigationEntry from a NavigationEntry. All its fields
// should match the NavigationEntry's.
TEST(ContentSerializedNavigationBuilderTest, FromNavigationEntry) {
- const scoped_ptr<content::NavigationEntry> navigation_entry(
+ const std::unique_ptr<content::NavigationEntry> navigation_entry(
MakeNavigationEntryForTest());
const SerializedNavigationEntry& navigation =
@@ -87,14 +87,14 @@ TEST(ContentSerializedNavigationBuilderTest, FromNavigationEntry) {
// except for fields that aren't preserved, which should be set to
// expected values.
TEST(ContentSerializedNavigationBuilderTest, ToNavigationEntry) {
- const scoped_ptr<content::NavigationEntry> old_navigation_entry(
+ const std::unique_ptr<content::NavigationEntry> old_navigation_entry(
MakeNavigationEntryForTest());
const SerializedNavigationEntry& navigation =
ContentSerializedNavigationBuilder::FromNavigationEntry(
test_data::kIndex, *old_navigation_entry);
- const scoped_ptr<content::NavigationEntry> new_navigation_entry(
+ const std::unique_ptr<content::NavigationEntry> new_navigation_entry(
ContentSerializedNavigationBuilder::ToNavigationEntry(
&navigation, test_data::kPageID, NULL));
« no previous file with comments | « components/sessions/content/content_serialized_navigation_builder.cc ('k') | components/sessions/core/base_session_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698