| 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 "chrome/browser/importer/profile_writer.h" | 5 #include "chrome/browser/importer/profile_writer.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 | 10 |
| 11 #include "base/macros.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 13 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 11 #include "chrome/browser/history/history_service_factory.h" | 14 #include "chrome/browser/history/history_service_factory.h" |
| 12 #include "chrome/browser/importer/importer_unittest_utils.h" | 15 #include "chrome/browser/importer/importer_unittest_utils.h" |
| 13 #include "chrome/common/importer/imported_bookmark_entry.h" | 16 #include "chrome/common/importer/imported_bookmark_entry.h" |
| 14 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
| 15 #include "components/bookmarks/browser/bookmark_match.h" | 18 #include "components/bookmarks/browser/bookmark_match.h" |
| 16 #include "components/bookmarks/browser/bookmark_model.h" | 19 #include "components/bookmarks/browser/bookmark_model.h" |
| 17 #include "components/bookmarks/browser/bookmark_utils.h" | 20 #include "components/bookmarks/browser/bookmark_utils.h" |
| 18 #include "components/bookmarks/test/bookmark_test_helpers.h" | 21 #include "components/bookmarks/test/bookmark_test_helpers.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 new TestProfileWriter(&profile)); | 200 new TestProfileWriter(&profile)); |
| 198 profile_writer->AddHistoryPage(pages_, history::SOURCE_FIREFOX_IMPORTED); | 201 profile_writer->AddHistoryPage(pages_, history::SOURCE_FIREFOX_IMPORTED); |
| 199 VerifyHistoryCount(&profile); | 202 VerifyHistoryCount(&profile); |
| 200 size_t original_history_count = history_count_; | 203 size_t original_history_count = history_count_; |
| 201 history_count_ = 0; | 204 history_count_ = 0; |
| 202 | 205 |
| 203 profile_writer->AddHistoryPage(pages_, history::SOURCE_FIREFOX_IMPORTED); | 206 profile_writer->AddHistoryPage(pages_, history::SOURCE_FIREFOX_IMPORTED); |
| 204 VerifyHistoryCount(&profile); | 207 VerifyHistoryCount(&profile); |
| 205 EXPECT_EQ(original_history_count, history_count_); | 208 EXPECT_EQ(original_history_count, history_count_); |
| 206 } | 209 } |
| OLD | NEW |