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

Unified Diff: ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm

Issue 2350663003: Make reading list entry movable only (Closed)
Patch Set: indentation Created 4 years, 3 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: ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm
diff --git a/ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm b/ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm
index 7b5cd8daab415a26f259a6bbcda5eff8697dd9f0..da7bbf37be07de8e46672de0beea02e331408cb6 100644
--- a/ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm
+++ b/ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm
@@ -31,8 +31,9 @@ TEST(ReadingListStorage, CheckEmpties) {
TEST(ReadingListStorage, SaveOneRead) {
NSUserDefaults* defaults = FakeNonPersistentUserDefaults();
- static const std::vector<ReadingListEntry> entries{
- ReadingListEntry(GURL("http://read.example.com"), "read title")};
+ std::vector<ReadingListEntry> entries;
+ entries.push_back(
+ ReadingListEntry(GURL("http://read.example.com"), "read title"));
{
ReadingListModelStorageDefaults storage(defaults);
@@ -51,8 +52,9 @@ TEST(ReadingListStorage, SaveOneRead) {
TEST(ReadingListStorage, SaveOneUnead) {
NSUserDefaults* defaults = FakeNonPersistentUserDefaults();
- static const std::vector<ReadingListEntry> entries{
- ReadingListEntry(GURL("http://unread.example.com"), "unread title")};
+ std::vector<ReadingListEntry> entries;
+ entries.push_back(
+ ReadingListEntry(GURL("http://unread.example.com"), "unread title"));
{
ReadingListModelStorageDefaults storage(defaults);
@@ -69,8 +71,9 @@ TEST(ReadingListStorage, SaveOneUnead) {
TEST(ReadingListStorage, SaveOneModified) {
NSUserDefaults* defaults = FakeNonPersistentUserDefaults();
- static std::vector<ReadingListEntry> entries{
- ReadingListEntry(GURL("http://unread.example.com"), "unread title")};
+ std::vector<ReadingListEntry> entries;
+ entries.push_back(
+ ReadingListEntry(GURL("http://unread.example.com"), "unread title"));
{
ReadingListModelStorageDefaults storage(defaults);
entries[0].SetDistilledURL(GURL("http://distilled.example.com"));

Powered by Google App Engine
This is Rietveld 408576698