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" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 ASSERT_TRUE(iter != favicons[i].urls.end()); | 238 ASSERT_TRUE(iter != favicons[i].urls.end()); |
239 ASSERT_TRUE(*iter == url1); | 239 ASSERT_TRUE(*iter == url1); |
240 ASSERT_TRUE(favicons[i].png_data == icon_data); | 240 ASSERT_TRUE(favicons[i].png_data == icon_data); |
241 } | 241 } |
242 } | 242 } |
243 | 243 |
244 // Verify we got back what we wrote. | 244 // Verify we got back what we wrote. |
245 ASSERT_EQ(8U, parsed_bookmarks.size()); | 245 ASSERT_EQ(8U, parsed_bookmarks.size()); |
246 // Windows and ChromeOS builds use Sentence case. | 246 // Windows and ChromeOS builds use Sentence case. |
247 string16 bookmark_folder_name = | 247 string16 bookmark_folder_name = |
248 l10n_util::GetStringUTF16(IDS_BOOMARK_BAR_FOLDER_NAME); | 248 l10n_util::GetStringUTF16(IDS_BOOKMARK_BAR_FOLDER_NAME); |
249 AssertBookmarkEntryEquals(parsed_bookmarks[0], true, url1, url1_title, t1, | 249 AssertBookmarkEntryEquals(parsed_bookmarks[0], true, url1, url1_title, t1, |
250 bookmark_folder_name, f1_title, string16()); | 250 bookmark_folder_name, f1_title, string16()); |
251 AssertBookmarkEntryEquals(parsed_bookmarks[1], true, url2, url2_title, t2, | 251 AssertBookmarkEntryEquals(parsed_bookmarks[1], true, url2, url2_title, t2, |
252 bookmark_folder_name, f1_title, f2_title); | 252 bookmark_folder_name, f1_title, f2_title); |
253 AssertBookmarkEntryEquals(parsed_bookmarks[2], true, url3, url3_title, t3, | 253 AssertBookmarkEntryEquals(parsed_bookmarks[2], true, url3, url3_title, t3, |
254 bookmark_folder_name, string16(), string16()); | 254 bookmark_folder_name, string16(), string16()); |
255 AssertBookmarkEntryEquals(parsed_bookmarks[3], true, url4, url4_title, t4, | 255 AssertBookmarkEntryEquals(parsed_bookmarks[3], true, url4, url4_title, t4, |
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 |