OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bookmarks/bookmark_html_writer.h" | 5 #include "chrome/browser/bookmarks/bookmark_html_writer.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/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/i18n/time_formatting.h" | 11 #include "base/i18n/time_formatting.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 18 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
19 #include "chrome/browser/favicon/favicon_service_factory.h" | 19 #include "chrome/browser/favicon/favicon_service_factory.h" |
20 #include "chrome/browser/history/history_service_factory.h" | 20 #include "chrome/browser/history/history_service_factory.h" |
21 #include "chrome/common/importer/imported_bookmark_entry.h" | 21 #include "chrome/common/importer/imported_bookmark_entry.h" |
22 #include "chrome/common/importer/importer_data_types.h" | 22 #include "chrome/common/importer/importer_data_types.h" |
23 #include "chrome/test/base/testing_profile.h" | 23 #include "chrome/test/base/testing_profile.h" |
24 #include "chrome/utility/importer/bookmark_html_reader.h" | 24 #include "chrome/utility/importer/bookmark_html_reader.h" |
25 #include "components/bookmarks/browser/bookmark_model.h" | 25 #include "components/bookmarks/browser/bookmark_model.h" |
26 #include "components/bookmarks/test/bookmark_test_helpers.h" | 26 #include "components/bookmarks/test/bookmark_test_helpers.h" |
27 #include "components/favicon/core/favicon_service.h" | 27 #include "components/favicon/core/favicon_service.h" |
28 #include "components/favicon_base/favicon_usage_data.h" | 28 #include "components/favicon_base/favicon_usage_data.h" |
29 #include "components/history/core/browser/history_service.h" | 29 #include "components/history/core/browser/history_service.h" |
| 30 #include "components/strings/grit/components_strings.h" |
30 #include "content/public/test/test_browser_thread_bundle.h" | 31 #include "content/public/test/test_browser_thread_bundle.h" |
31 #include "grit/components_strings.h" | |
32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
33 #include "third_party/skia/include/core/SkBitmap.h" | 33 #include "third_party/skia/include/core/SkBitmap.h" |
34 #include "ui/base/l10n/l10n_util.h" | 34 #include "ui/base/l10n/l10n_util.h" |
35 #include "ui/gfx/codec/png_codec.h" | 35 #include "ui/gfx/codec/png_codec.h" |
36 | 36 |
37 using bookmarks::BookmarkModel; | 37 using bookmarks::BookmarkModel; |
38 using bookmarks::BookmarkNode; | 38 using bookmarks::BookmarkNode; |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1, | 297 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1, |
298 f3_title, f4_title, base::string16()); | 298 f3_title, f4_title, base::string16()); |
299 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1, | 299 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1, |
300 base::string16(), base::string16(), | 300 base::string16(), base::string16(), |
301 base::string16()); | 301 base::string16()); |
302 AssertBookmarkEntryEquals(parsed_bookmarks[8], false, unnamed_bookmark_url, | 302 AssertBookmarkEntryEquals(parsed_bookmarks[8], false, unnamed_bookmark_url, |
303 unnamed_bookmark_title, t2, | 303 unnamed_bookmark_title, t2, |
304 base::string16(), base::string16(), | 304 base::string16(), base::string16(), |
305 base::string16()); | 305 base::string16()); |
306 } | 306 } |
OLD | NEW |