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

Side by Side Diff: components/dom_distiller/core/dom_distiller_test_util.cc

Issue 140113002: Fix memory leak in readingListPrivate api test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: inline Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/dom_distiller/core/dom_distiller_test_util.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/dom_distiller/core/dom_distiller_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698