Chromium Code Reviews| Index: ios/chrome/browser/reading_list/reading_list_model_unittest.cc |
| diff --git a/ios/chrome/browser/reading_list/reading_list_model_unittest.cc b/ios/chrome/browser/reading_list/reading_list_model_unittest.cc |
| index 1dc18fafc1725cf8b385f261842324c35d4463bc..c92138d617fe44872fa4da365272c999bc67b32a 100644 |
| --- a/ios/chrome/browser/reading_list/reading_list_model_unittest.cc |
| +++ b/ios/chrome/browser/reading_list/reading_list_model_unittest.cc |
| @@ -128,7 +128,7 @@ TEST_F(ReadingListModelTest, EmptyLoaded) { |
| TEST_F(ReadingListModelTest, AddEntry) { |
| ClearCounts(); |
| - const ReadingListEntry entry = |
| + const ReadingListEntry& entry = |
| model_->AddEntry(GURL("http://example.com"), "sample"); |
| EXPECT_EQ(GURL("http://example.com"), entry.URL()); |
| EXPECT_EQ("sample", entry.Title()); |
| @@ -138,13 +138,12 @@ TEST_F(ReadingListModelTest, AddEntry) { |
| EXPECT_EQ(0ul, model_->read_size()); |
| EXPECT_TRUE(model_->HasUnseenEntries()); |
| - const ReadingListEntry other_entry = model_->GetUnreadEntryAtIndex(0); |
| + const ReadingListEntry& other_entry = model_->GetUnreadEntryAtIndex(0); |
| EXPECT_EQ(GURL("http://example.com"), other_entry.URL()); |
| EXPECT_EQ("sample", other_entry.Title()); |
| } |
| TEST_F(ReadingListModelTest, ReadEntry) { |
| - const ReadingListEntry entry = |
| model_->AddEntry(GURL("http://example.com"), "sample"); |
|
noyau (Ping after 24h)
2016/09/19 15:33:36
indent
|
| ClearCounts(); |
| @@ -154,7 +153,7 @@ TEST_F(ReadingListModelTest, ReadEntry) { |
| EXPECT_EQ(1ul, model_->read_size()); |
| EXPECT_FALSE(model_->HasUnseenEntries()); |
| - const ReadingListEntry other_entry = model_->GetReadEntryAtIndex(0); |
| + const ReadingListEntry& other_entry = model_->GetReadEntryAtIndex(0); |
| EXPECT_EQ(GURL("http://example.com"), other_entry.URL()); |
| EXPECT_EQ("sample", other_entry.Title()); |
| } |