OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/dom_distiller/core/dom_distiller_test_util.h" | 5 #include "components/dom_distiller/core/dom_distiller_test_util.h" |
6 | 6 |
7 #include "components/dom_distiller/core/dom_distiller_store.h" | 7 #include "components/dom_distiller/core/dom_distiller_store.h" |
8 #include "components/dom_distiller/core/fake_distiller.h" | 8 #include "components/dom_distiller/core/fake_distiller.h" |
9 | 9 |
10 namespace dom_distiller { | 10 namespace dom_distiller { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 testing::Matcher<const std::vector<DomDistillerObserver::ArticleUpdate>&> | 86 testing::Matcher<const std::vector<DomDistillerObserver::ArticleUpdate>&> |
87 HasExpectedUpdates( | 87 HasExpectedUpdates( |
88 const std::vector<DomDistillerObserver::ArticleUpdate>& expected_updates) { | 88 const std::vector<DomDistillerObserver::ArticleUpdate>& expected_updates) { |
89 return testing::MakeMatcher(new ObserverUpdatesMatcher(expected_updates)); | 89 return testing::MakeMatcher(new ObserverUpdatesMatcher(expected_updates)); |
90 } | 90 } |
91 | 91 |
92 // static | 92 // static |
93 DomDistillerStore* CreateStoreWithFakeDB(FakeDB* fake_db, | 93 DomDistillerStore* CreateStoreWithFakeDB(FakeDB* fake_db, |
94 FakeDB::EntryMap* store_model) { | 94 const FakeDB::EntryMap& store_model) { |
95 return new DomDistillerStore( | 95 return new DomDistillerStore( |
96 scoped_ptr<DomDistillerDatabaseInterface>(fake_db), | 96 scoped_ptr<DomDistillerDatabaseInterface>(fake_db), |
97 EntryMapToList(*store_model), | 97 EntryMapToList(store_model), |
98 FakeDB::DirectoryForTestDB()); | 98 FakeDB::DirectoryForTestDB()); |
99 } | 99 } |
100 | 100 |
101 } // namespace util | 101 } // namespace util |
102 } // namespace test | 102 } // namespace test |
103 } // namespace dom_distiller | 103 } // namespace dom_distiller |
OLD | NEW |