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

Side by Side Diff: components/reading_list/ios/reading_list_model_unittest.mm

Issue 2511723002: Enable RL sync by default on iOS (Closed)
Patch Set: rebase Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/reading_list/ios/reading_list_model.h"
6
5 #include "base/bind.h" 7 #include "base/bind.h"
6 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
7 #import "base/test/ios/wait_util.h" 9 #import "base/test/ios/wait_util.h"
8 #include "components/reading_list/reading_list_model_impl.h" 10 #include "components/reading_list/ios/reading_list_model_impl.h"
9 #include "components/reading_list/reading_list_model_storage.h" 11 #include "components/reading_list/ios/reading_list_model_storage.h"
10 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
11 13
12 namespace { 14 namespace {
13 15
14 const GURL callback_url("http://example.com"); 16 const GURL callback_url("http://example.com");
15 const std::string callback_title("test title"); 17 const std::string callback_title("test title");
16 18
17 class TestReadingListStorageObserver { 19 class TestReadingListStorageObserver {
18 public: 20 public:
19 virtual void ReadingListDidSaveEntry() = 0; 21 virtual void ReadingListDidSaveEntry() = 0;
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 } 612 }
611 613
612 // Tests that ReadingListModel calls CallbackModelBeingDeleted when destroyed. 614 // Tests that ReadingListModel calls CallbackModelBeingDeleted when destroyed.
613 TEST_F(ReadingListModelTest, CallbackModelBeingDeleted) { 615 TEST_F(ReadingListModelTest, CallbackModelBeingDeleted) {
614 AssertObserverCount(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); 616 AssertObserverCount(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
615 model_.reset(); 617 model_.reset();
616 AssertObserverCount(1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0); 618 AssertObserverCount(1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0);
617 } 619 }
618 620
619 } // namespace 621 } // namespace
OLDNEW
« no previous file with comments | « components/reading_list/ios/reading_list_model_storage.h ('k') | components/reading_list/ios/reading_list_pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698