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

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

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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_store.h" 5 #include "components/dom_distiller/core/dom_distiller_store.h"
6 6
7 #include <stdint.h>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
10 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 13 #include "base/run_loop.h"
12 #include "base/time/time.h" 14 #include "base/time/time.h"
13 #include "components/dom_distiller/core/article_entry.h" 15 #include "components/dom_distiller/core/article_entry.h"
14 #include "components/dom_distiller/core/dom_distiller_test_util.h" 16 #include "components/dom_distiller/core/dom_distiller_test_util.h"
15 #include "components/leveldb_proto/testing/fake_db.h" 17 #include "components/leveldb_proto/testing/fake_db.h"
16 #include "sync/api/attachments/attachment_id.h" 18 #include "sync/api/attachments/attachment_id.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 EntryMap db_model_; 179 EntryMap db_model_;
178 EntryMap sync_model_; 180 EntryMap sync_model_;
179 FakeDB<ArticleEntry>::EntryMap store_model_; 181 FakeDB<ArticleEntry>::EntryMap store_model_;
180 182
181 scoped_ptr<DomDistillerStore> store_; 183 scoped_ptr<DomDistillerStore> store_;
182 184
183 // Both owned by |store_|. 185 // Both owned by |store_|.
184 FakeDB<ArticleEntry>* fake_db_; 186 FakeDB<ArticleEntry>* fake_db_;
185 FakeSyncChangeProcessor* fake_sync_processor_; 187 FakeSyncChangeProcessor* fake_sync_processor_;
186 188
187 int64 next_sync_id_; 189 int64_t next_sync_id_;
188 }; 190 };
189 191
190 AssertionResult AreEntriesEqual(const DomDistillerStore::EntryVector& entries, 192 AssertionResult AreEntriesEqual(const DomDistillerStore::EntryVector& entries,
191 EntryMap expected_entries) { 193 EntryMap expected_entries) {
192 if (entries.size() != expected_entries.size()) 194 if (entries.size() != expected_entries.size())
193 return AssertionFailure() << "Expected " << expected_entries.size() 195 return AssertionFailure() << "Expected " << expected_entries.size()
194 << " entries but found " << entries.size(); 196 << " entries but found " << entries.size();
195 197
196 for (DomDistillerStore::EntryVector::const_iterator it = entries.begin(); 198 for (DomDistillerStore::EntryVector::const_iterator it = entries.begin();
197 it != entries.end(); ++it) { 199 it != entries.end(); ++it) {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 EntryMap fake_model; 583 EntryMap fake_model;
582 FakeSyncChangeProcessor* fake_sync_change_processor = 584 FakeSyncChangeProcessor* fake_sync_change_processor =
583 new FakeSyncChangeProcessor(&fake_model); 585 new FakeSyncChangeProcessor(&fake_model);
584 store_->MergeDataAndStartSyncing( 586 store_->MergeDataAndStartSyncing(
585 kDomDistillerModelType, change_data, 587 kDomDistillerModelType, change_data,
586 make_scoped_ptr<SyncChangeProcessor>(fake_sync_change_processor), 588 make_scoped_ptr<SyncChangeProcessor>(fake_sync_change_processor),
587 make_scoped_ptr<SyncErrorFactory>(fake_error_factory)); 589 make_scoped_ptr<SyncErrorFactory>(fake_error_factory));
588 } 590 }
589 591
590 } // namespace dom_distiller 592 } // namespace dom_distiller
OLDNEW
« no previous file with comments | « components/dom_distiller/core/dom_distiller_store.cc ('k') | components/dom_distiller/core/page_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698