OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/importer/importer_unittest_utils.h" | 21 #include "chrome/browser/importer/importer_unittest_utils.h" |
22 #include "chrome/browser/ui/browser.h" | 22 #include "chrome/browser/ui/browser.h" |
23 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
24 #include "chrome/common/importer/edge_importer_utils_win.h" | 24 #include "chrome/common/importer/edge_importer_utils_win.h" |
25 #include "chrome/common/importer/imported_bookmark_entry.h" | 25 #include "chrome/common/importer/imported_bookmark_entry.h" |
26 #include "chrome/common/importer/importer_bridge.h" | 26 #include "chrome/common/importer/importer_bridge.h" |
27 #include "chrome/common/importer/importer_data_types.h" | 27 #include "chrome/common/importer/importer_data_types.h" |
28 #include "chrome/common/importer/importer_test_registry_overrider_win.h" | 28 #include "chrome/common/importer/importer_test_registry_overrider_win.h" |
29 #include "chrome/test/base/in_process_browser_test.h" | 29 #include "chrome/test/base/in_process_browser_test.h" |
30 #include "chrome/test/base/testing_profile.h" | 30 #include "chrome/test/base/testing_profile.h" |
31 #include "components/compression/compression_utils.h" | |
32 #include "components/favicon_base/favicon_usage_data.h" | 31 #include "components/favicon_base/favicon_usage_data.h" |
33 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| 33 #include "third_party/zlib/google/compression_utils.h" |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 struct FaviconGroup { | 37 struct FaviconGroup { |
38 const base::char16* favicon_url; | 38 const base::char16* favicon_url; |
39 const base::char16* site_url; | 39 const base::char16* site_url; |
40 }; | 40 }; |
41 | 41 |
42 class TestObserver : public ProfileWriter, | 42 class TestObserver : public ProfileWriter, |
43 public importer::ImporterProgressObserver { | 43 public importer::ImporterProgressObserver { |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 host->set_observer(observer.get()); | 289 host->set_observer(observer.get()); |
290 | 290 |
291 importer::SourceProfile source_profile; | 291 importer::SourceProfile source_profile; |
292 source_profile.importer_type = importer::TYPE_EDGE; | 292 source_profile.importer_type = importer::TYPE_EDGE; |
293 source_profile.source_path = temp_dir_.path(); | 293 source_profile.source_path = temp_dir_.path(); |
294 | 294 |
295 host->StartImportSettings(source_profile, browser()->profile(), | 295 host->StartImportSettings(source_profile, browser()->profile(), |
296 importer::FAVORITES, observer.get()); | 296 importer::FAVORITES, observer.get()); |
297 base::MessageLoop::current()->Run(); | 297 base::MessageLoop::current()->Run(); |
298 } | 298 } |
OLD | NEW |