OLD | NEW |
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_frame/test/chrome_frame_test_utils.h" | 5 #include "chrome_frame/test/chrome_frame_test_utils.h" |
6 | 6 |
7 #include <atlapp.h> | 7 #include <atlapp.h> |
8 #include <atlmisc.h> | 8 #include <atlmisc.h> |
9 #include <iepmapi.h> | 9 #include <iepmapi.h> |
10 #include <sddl.h> | 10 #include <sddl.h> |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 } | 699 } |
700 | 700 |
701 void ClearIESessionHistory() { | 701 void ClearIESessionHistory() { |
702 base::FilePath session_history_path; | 702 base::FilePath session_history_path; |
703 if (!PathService::Get(base::DIR_LOCAL_APP_DATA, &session_history_path)) | 703 if (!PathService::Get(base::DIR_LOCAL_APP_DATA, &session_history_path)) |
704 return; | 704 return; |
705 | 705 |
706 session_history_path = session_history_path.AppendASCII("Microsoft"); | 706 session_history_path = session_history_path.AppendASCII("Microsoft"); |
707 session_history_path = session_history_path.AppendASCII("Internet Explorer"); | 707 session_history_path = session_history_path.AppendASCII("Internet Explorer"); |
708 session_history_path = session_history_path.AppendASCII("Recovery"); | 708 session_history_path = session_history_path.AppendASCII("Recovery"); |
709 base::Delete(session_history_path, true); | 709 base::DeleteFile(session_history_path, true); |
710 } | 710 } |
711 | 711 |
712 std::string GetLocalIPv4Address() { | 712 std::string GetLocalIPv4Address() { |
713 std::string address; | 713 std::string address; |
714 net::NetworkInterfaceList nic_list; | 714 net::NetworkInterfaceList nic_list; |
715 | 715 |
716 if (!net::GetNetworkList(&nic_list)) { | 716 if (!net::GetNetworkList(&nic_list)) { |
717 LOG(ERROR) << "GetNetworkList failed to look up non-loopback adapters. " | 717 LOG(ERROR) << "GetNetworkList failed to look up non-loopback adapters. " |
718 << "Tests will be run over the loopback adapter, which may " | 718 << "Tests will be run over the loopback adapter, which may " |
719 << "result in hangs."; | 719 << "result in hangs."; |
(...skipping 17 matching lines...) Expand all Loading... |
737 if (address.empty()) { | 737 if (address.empty()) { |
738 LOG(ERROR) << "Failed to find a non-loopback IP_V4 address. Tests will be " | 738 LOG(ERROR) << "Failed to find a non-loopback IP_V4 address. Tests will be " |
739 << "run over the loopback adapter, which may result in hangs."; | 739 << "run over the loopback adapter, which may result in hangs."; |
740 address.assign("127.0.0.1"); | 740 address.assign("127.0.0.1"); |
741 } | 741 } |
742 | 742 |
743 return address; | 743 return address; |
744 } | 744 } |
745 | 745 |
746 } // namespace chrome_frame_test | 746 } // namespace chrome_frame_test |
OLD | NEW |