Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: chrome/browser/bookmarks/bookmark_html_writer_unittest.cc

Issue 7744055: bookmarks: Fix an obvious typo in IDS_BOOMARK_*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/bookmarks/bookmark_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698