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

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

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CanImport Created 7 years, 5 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) 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/path_service.h" 9 #include "base/path_service.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/bookmarks/bookmark_model.h" 15 #include "chrome/browser/bookmarks/bookmark_model.h"
16 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 16 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
17 #include "chrome/browser/favicon/favicon_service.h" 17 #include "chrome/browser/favicon/favicon_service.h"
18 #include "chrome/browser/favicon/favicon_service_factory.h" 18 #include "chrome/browser/favicon/favicon_service_factory.h"
19 #include "chrome/browser/history/history_service.h" 19 #include "chrome/browser/history/history_service.h"
20 #include "chrome/browser/history/history_service_factory.h" 20 #include "chrome/browser/history/history_service_factory.h"
21 #include "chrome/browser/importer/bookmark_html_reader.h"
22 #include "chrome/common/importer/imported_bookmark_entry.h" 21 #include "chrome/common/importer/imported_bookmark_entry.h"
23 #include "chrome/common/importer/imported_favicon_usage.h" 22 #include "chrome/common/importer/imported_favicon_usage.h"
24 #include "chrome/test/base/testing_profile.h" 23 #include "chrome/test/base/testing_profile.h"
25 #include "chrome/test/base/ui_test_utils.h" 24 #include "chrome/test/base/ui_test_utils.h"
25 #include "chrome/utility/importer/bookmark_html_reader.h"
26 #include "content/public/test/test_browser_thread_bundle.h" 26 #include "content/public/test/test_browser_thread_bundle.h"
27 #include "grit/generated_resources.h" 27 #include "grit/generated_resources.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 content::BrowserThread; 33 using content::BrowserThread;
34 34
35 namespace { 35 namespace {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 AssertBookmarkEntryEquals(parsed_bookmarks[5], false, url2, url2_title, t2, 274 AssertBookmarkEntryEquals(parsed_bookmarks[5], false, url2, url2_title, t2,
275 string16(), string16(), string16()); 275 string16(), string16(), string16());
276 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1, 276 AssertBookmarkEntryEquals(parsed_bookmarks[6], false, url1, url1_title, t1,
277 f3_title, f4_title, string16()); 277 f3_title, f4_title, string16());
278 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1, 278 AssertBookmarkEntryEquals(parsed_bookmarks[7], false, url1, url1_title, t1,
279 string16(), string16(), string16()); 279 string16(), string16(), string16());
280 AssertBookmarkEntryEquals(parsed_bookmarks[8], false, unnamed_bookmark_url, 280 AssertBookmarkEntryEquals(parsed_bookmarks[8], false, unnamed_bookmark_url,
281 unnamed_bookmark_title, t2, 281 unnamed_bookmark_title, t2,
282 string16(), string16(), string16()); 282 string16(), string16(), string16());
283 } 283 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698