| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 using browser_sync::TypedUrlModelAssociator; | 44 using browser_sync::TypedUrlModelAssociator; |
| 45 using browser_sync::UnrecoverableErrorHandler; | 45 using browser_sync::UnrecoverableErrorHandler; |
| 46 using history::HistoryBackend; | 46 using history::HistoryBackend; |
| 47 using history::URLID; | 47 using history::URLID; |
| 48 using history::URLRow; | 48 using history::URLRow; |
| 49 using sync_api::SyncManager; | 49 using sync_api::SyncManager; |
| 50 using sync_api::UserShare; | 50 using sync_api::UserShare; |
| 51 using syncable::BASE_VERSION; | 51 using syncable::BASE_VERSION; |
| 52 using syncable::CREATE; | 52 using syncable::CREATE; |
| 53 using syncable::DirectoryManager; | 53 using syncable::DirectoryManager; |
| 54 using syncable::ID; | |
| 55 using syncable::IS_DEL; | 54 using syncable::IS_DEL; |
| 56 using syncable::IS_DIR; | 55 using syncable::IS_DIR; |
| 57 using syncable::IS_UNAPPLIED_UPDATE; | 56 using syncable::IS_UNAPPLIED_UPDATE; |
| 58 using syncable::IS_UNSYNCED; | 57 using syncable::IS_UNSYNCED; |
| 59 using syncable::MutableEntry; | 58 using syncable::MutableEntry; |
| 60 using syncable::SERVER_IS_DIR; | 59 using syncable::SERVER_IS_DIR; |
| 61 using syncable::SERVER_VERSION; | 60 using syncable::SERVER_VERSION; |
| 62 using syncable::SPECIFICS; | 61 using syncable::SPECIFICS; |
| 63 using syncable::ScopedDirLookup; | 62 using syncable::ScopedDirLookup; |
| 64 using syncable::UNIQUE_SERVER_TAG; | 63 using syncable::UNIQUE_SERVER_TAG; |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 history::URLsDeletedDetails changes; | 523 history::URLsDeletedDetails changes; |
| 525 changes.all_history = true; | 524 changes.all_history = true; |
| 526 scoped_refptr<ThreadNotifier> notifier = new ThreadNotifier(&history_thread_); | 525 scoped_refptr<ThreadNotifier> notifier = new ThreadNotifier(&history_thread_); |
| 527 notifier->Notify(NotificationType::HISTORY_URLS_DELETED, | 526 notifier->Notify(NotificationType::HISTORY_URLS_DELETED, |
| 528 Details<history::URLsDeletedDetails>(&changes)); | 527 Details<history::URLsDeletedDetails>(&changes)); |
| 529 | 528 |
| 530 std::vector<history::URLRow> new_sync_entries; | 529 std::vector<history::URLRow> new_sync_entries; |
| 531 GetTypedUrlsFromSyncDB(&new_sync_entries); | 530 GetTypedUrlsFromSyncDB(&new_sync_entries); |
| 532 ASSERT_EQ(0U, new_sync_entries.size()); | 531 ASSERT_EQ(0U, new_sync_entries.size()); |
| 533 } | 532 } |
| OLD | NEW |