OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/scoped_temp_dir.h" | 11 #include "base/scoped_temp_dir.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/bookmarks/bookmark_html_writer.h" | 16 #include "chrome/browser/bookmarks/bookmark_html_writer.h" |
17 #include "chrome/browser/bookmarks/bookmark_model.h" | 17 #include "chrome/browser/bookmarks/bookmark_model.h" |
18 #include "chrome/browser/importer/firefox2_importer.h" | 18 #include "chrome/browser/importer/firefox2_importer.h" |
| 19 #include "chrome/test/base/testing_browser_process_test.h" |
19 #include "chrome/test/base/testing_profile.h" | 20 #include "chrome/test/base/testing_profile.h" |
20 #include "chrome/test/testing_browser_process_test.h" | |
21 #include "content/browser/browser_thread.h" | 21 #include "content/browser/browser_thread.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
25 #include "ui/gfx/codec/png_codec.h" | 25 #include "ui/gfx/codec/png_codec.h" |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 static const int kIconWidth = 16; | 29 static const int kIconWidth = 16; |
30 static const int kIconHeight = 16; | 30 static const int kIconHeight = 16; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 bookmark_folder_name, string16(), string16()); | 256 bookmark_folder_name, string16(), string16()); |
257 AssertBookmarkEntryEquals(parsed_bookmarks[4], false, url1, url1_title, t1, | 257 AssertBookmarkEntryEquals(parsed_bookmarks[4], false, url1, url1_title, t1, |
258 string16(), string16(), string16()); | 258 string16(), string16(), string16()); |
259 AssertBookmarkEntryEquals(parsed_bookmarks[5], false, url2, url2_title, t2, | 259 AssertBookmarkEntryEquals(parsed_bookmarks[5], false, url2, url2_title, t2, |
260 string16(), string16(), string16()); | 260 string16(), string16(), string16()); |
261 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1, | 261 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1, |
262 f3_title, f4_title, string16()); | 262 f3_title, f4_title, string16()); |
263 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1, | 263 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1, |
264 string16(), string16(), string16()); | 264 string16(), string16(), string16()); |
265 } | 265 } |
OLD | NEW |