| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <windows.h> | 7 #include <windows.h> |
| 8 #include <unknwn.h> | 8 #include <unknwn.h> |
| 9 #include <intshcut.h> | 9 #include <intshcut.h> |
| 10 #include <pstore.h> | 10 #include <pstore.h> |
| 11 #include <urlhist.h> | 11 #include <urlhist.h> |
| 12 #include <shlguid.h> | 12 #include <shlguid.h> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "chrome/browser/ie_importer.h" | |
| 18 #include "chrome/browser/ie7_password.h" | 17 #include "chrome/browser/ie7_password.h" |
| 19 #include "chrome/browser/importer.h" | 18 #include "chrome/browser/importer/ie_importer.h" |
| 19 #include "chrome/browser/importer/importer.h" |
| 20 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profile.h" |
| 21 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
| 22 #include "chrome/common/env_util.h" | 22 #include "chrome/common/env_util.h" |
| 23 #include "chrome/common/win_util.h" | 23 #include "chrome/common/win_util.h" |
| 24 | 24 |
| 25 class ImporterTest : public testing::Test { | 25 class ImporterTest : public testing::Test { |
| 26 public: | 26 public: |
| 27 protected: | 27 protected: |
| 28 virtual void SetUp() { | 28 virtual void SetUp() { |
| 29 // Creates a new profile in a new subdirectory in the temp directory. | 29 // Creates a new profile in a new subdirectory in the temp directory. |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 profile_info.source_path = profile_path_; | 810 profile_info.source_path = profile_path_; |
| 811 scoped_refptr<ImporterHost> host = new ImporterHost(loop); | 811 scoped_refptr<ImporterHost> host = new ImporterHost(loop); |
| 812 Firefox3Observer* observer = new Firefox3Observer(); | 812 Firefox3Observer* observer = new Firefox3Observer(); |
| 813 host->SetObserver(observer); | 813 host->SetObserver(observer); |
| 814 loop->PostTask(FROM_HERE, NewRunnableMethod(host.get(), | 814 loop->PostTask(FROM_HERE, NewRunnableMethod(host.get(), |
| 815 &ImporterHost::StartImportSettings, profile_info, | 815 &ImporterHost::StartImportSettings, profile_info, |
| 816 HISTORY | PASSWORDS | FAVORITES | SEARCH_ENGINES, observer, true)); | 816 HISTORY | PASSWORDS | FAVORITES | SEARCH_ENGINES, observer, true)); |
| 817 loop->Run(); | 817 loop->Run(); |
| 818 } | 818 } |
| 819 | 819 |
| OLD | NEW |