OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/importer/bookmark_html_reader.h" | 5 #include "chrome/utility/importer/bookmark_html_reader.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 ImportBookmarksFile(base::Callback<bool(void)>(), | 266 ImportBookmarksFile(base::Callback<bool(void)>(), |
267 base::Bind(&IsURLValid), | 267 base::Bind(&IsURLValid), |
268 path, &bookmarks, NULL); | 268 path, &bookmarks, NULL); |
269 | 269 |
270 ASSERT_EQ(2U, bookmarks.size()); | 270 ASSERT_EQ(2U, bookmarks.size()); |
271 ExpectFirstFirefox2Bookmark(bookmarks[0]); | 271 ExpectFirstFirefox2Bookmark(bookmarks[0]); |
272 ExpectThirdFirefox2Bookmark(bookmarks[1]); | 272 ExpectThirdFirefox2Bookmark(bookmarks[1]); |
273 } | 273 } |
274 | 274 |
275 } // namespace bookmark_html_reader | 275 } // namespace bookmark_html_reader |
OLD | NEW |