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

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

Issue 865163003: bookmarks: Move BookmarkNode into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enhanced_bookmarks fix Created 5 years, 10 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
OLDNEW
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 "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/i18n/time_formatting.h" 8 #include "base/i18n/time_formatting.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 13 matching lines...) Expand all
24 #include "components/bookmarks/browser/bookmark_model.h" 24 #include "components/bookmarks/browser/bookmark_model.h"
25 #include "components/bookmarks/test/bookmark_test_helpers.h" 25 #include "components/bookmarks/test/bookmark_test_helpers.h"
26 #include "content/public/test/test_browser_thread_bundle.h" 26 #include "content/public/test/test_browser_thread_bundle.h"
27 #include "grit/components_strings.h" 27 #include "grit/components_strings.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "third_party/skia/include/core/SkBitmap.h" 29 #include "third_party/skia/include/core/SkBitmap.h"
30 #include "ui/base/l10n/l10n_util.h" 30 #include "ui/base/l10n/l10n_util.h"
31 #include "ui/gfx/codec/png_codec.h" 31 #include "ui/gfx/codec/png_codec.h"
32 32
33 using bookmarks::BookmarkModel; 33 using bookmarks::BookmarkModel;
34 using bookmarks::BookmarkNode;
34 35
35 namespace { 36 namespace {
36 37
37 const int kIconWidth = 16; 38 const int kIconWidth = 16;
38 const int kIconHeight = 16; 39 const int kIconHeight = 16;
39 40
40 void MakeTestSkBitmap(int w, int h, SkBitmap* bmp) { 41 void MakeTestSkBitmap(int w, int h, SkBitmap* bmp) {
41 bmp->allocN32Pixels(w, h); 42 bmp->allocN32Pixels(w, h);
42 43
43 uint32_t* src_data = bmp->getAddr32(0, 0); 44 uint32_t* src_data = bmp->getAddr32(0, 0);
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1, 293 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1,
293 f3_title, f4_title, base::string16()); 294 f3_title, f4_title, base::string16());
294 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1, 295 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1,
295 base::string16(), base::string16(), 296 base::string16(), base::string16(),
296 base::string16()); 297 base::string16());
297 AssertBookmarkEntryEquals(parsed_bookmarks[8], false, unnamed_bookmark_url, 298 AssertBookmarkEntryEquals(parsed_bookmarks[8], false, unnamed_bookmark_url,
298 unnamed_bookmark_title, t2, 299 unnamed_bookmark_title, t2,
299 base::string16(), base::string16(), 300 base::string16(), base::string16(),
300 base::string16()); 301 base::string16());
301 } 302 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698