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

Side by Side Diff: components/history/core/browser/typed_url_syncable_service_unittest.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/history/core/browser/typed_url_syncable_service.h" 5 #include "components/history/core/browser/typed_url_syncable_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } // namespace 213 } // namespace
214 214
215 class TypedUrlSyncableServiceTest : public testing::Test { 215 class TypedUrlSyncableServiceTest : public testing::Test {
216 public: 216 public:
217 TypedUrlSyncableServiceTest() : typed_url_sync_service_(NULL) {} 217 TypedUrlSyncableServiceTest() : typed_url_sync_service_(NULL) {}
218 ~TypedUrlSyncableServiceTest() override {} 218 ~TypedUrlSyncableServiceTest() override {}
219 219
220 void SetUp() override { 220 void SetUp() override {
221 fake_history_backend_ = new TestHistoryBackend(); 221 fake_history_backend_ = new TestHistoryBackend();
222 ASSERT_TRUE(test_dir_.CreateUniqueTempDir()); 222 ASSERT_TRUE(test_dir_.CreateUniqueTempDir());
223 fake_history_backend_->Init( 223 fake_history_backend_->Init(false,
224 std::string(), false,
225 TestHistoryDatabaseParamsForPath(test_dir_.path())); 224 TestHistoryDatabaseParamsForPath(test_dir_.path()));
226 typed_url_sync_service_ = 225 typed_url_sync_service_ =
227 fake_history_backend_->GetTypedUrlSyncableService(); 226 fake_history_backend_->GetTypedUrlSyncableService();
228 fake_change_processor_.reset(new syncer::FakeSyncChangeProcessor); 227 fake_change_processor_.reset(new syncer::FakeSyncChangeProcessor);
229 } 228 }
230 229
231 // Starts sync for |typed_url_sync_service_| with |initial_data| as the 230 // Starts sync for |typed_url_sync_service_| with |initial_data| as the
232 // initial sync data. 231 // initial sync data.
233 void StartSyncing(const syncer::SyncDataList& initial_data); 232 void StartSyncing(const syncer::SyncDataList& initial_data);
234 233
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 // We should not sync the visit with timestamp #1 since it is earlier than 1489 // We should not sync the visit with timestamp #1 since it is earlier than
1491 // any other visit for this URL in the history DB. But we should sync visit 1490 // any other visit for this URL in the history DB. But we should sync visit
1492 // #4. 1491 // #4.
1493 EXPECT_EQ(3U, history_visits.size()); 1492 EXPECT_EQ(3U, history_visits.size());
1494 EXPECT_EQ(2U, history_visits[0].visit_time.ToInternalValue()); 1493 EXPECT_EQ(2U, history_visits[0].visit_time.ToInternalValue());
1495 EXPECT_EQ(3U, history_visits[1].visit_time.ToInternalValue()); 1494 EXPECT_EQ(3U, history_visits[1].visit_time.ToInternalValue());
1496 EXPECT_EQ(4U, history_visits[2].visit_time.ToInternalValue()); 1495 EXPECT_EQ(4U, history_visits[2].visit_time.ToInternalValue());
1497 } 1496 }
1498 1497
1499 } // namespace history 1498 } // namespace history
OLDNEW
« no previous file with comments | « components/history/core/browser/top_sites_impl_unittest.cc ('k') | components/history/core/browser/url_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698