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/net/fake_external_tab.h" | 5 #include "chrome_frame/test/net/fake_external_tab.h" |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlcom.h> | 8 #include <atlcom.h> |
9 #include <exdisp.h> | 9 #include <exdisp.h> |
10 #include <Winsock2.h> | 10 #include <Winsock2.h> |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 } else { | 473 } else { |
474 EnumChildWindows(hwnd, EnumChildren, param); | 474 EnumChildWindows(hwnd, EnumChildren, param); |
475 } | 475 } |
476 | 476 |
477 return TRUE; | 477 return TRUE; |
478 } | 478 } |
479 | 479 |
480 FakeExternalTab::FakeExternalTab() { | 480 FakeExternalTab::FakeExternalTab() { |
481 user_data_dir_ = chrome_frame_test::GetProfilePathForIE(); | 481 user_data_dir_ = chrome_frame_test::GetProfilePathForIE(); |
482 | 482 |
483 if (file_util::PathExists(user_data_dir_)) { | 483 if (base::PathExists(user_data_dir_)) { |
484 VLOG(1) << __FUNCTION__ << " deleting IE Profile user data directory " | 484 VLOG(1) << __FUNCTION__ << " deleting IE Profile user data directory " |
485 << user_data_dir_.value(); | 485 << user_data_dir_.value(); |
486 bool deleted = base::Delete(user_data_dir_, true); | 486 bool deleted = base::Delete(user_data_dir_, true); |
487 LOG_IF(ERROR, !deleted) << "Failed to delete user data directory directory " | 487 LOG_IF(ERROR, !deleted) << "Failed to delete user data directory directory " |
488 << user_data_dir_.value(); | 488 << user_data_dir_.value(); |
489 } | 489 } |
490 | 490 |
491 PathService::Get(chrome::DIR_USER_DATA, &overridden_user_dir_); | 491 PathService::Get(chrome::DIR_USER_DATA, &overridden_user_dir_); |
492 PathService::Override(chrome::DIR_USER_DATA, user_data_dir_); | 492 PathService::Override(chrome::DIR_USER_DATA, user_data_dir_); |
493 } | 493 } |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 content::InitializeSandboxInfo(&sandbox_info); | 987 content::InitializeSandboxInfo(&sandbox_info); |
988 FakeMainDelegate delegate; | 988 FakeMainDelegate delegate; |
989 content::ContentMain( | 989 content::ContentMain( |
990 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)), | 990 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)), |
991 &sandbox_info, | 991 &sandbox_info, |
992 &delegate); | 992 &delegate); |
993 | 993 |
994 // Note: In debug builds, we ExitProcess during PostDestroyThreads. | 994 // Note: In debug builds, we ExitProcess during PostDestroyThreads. |
995 return g_test_suite->test_result(); | 995 return g_test_suite->test_result(); |
996 } | 996 } |
OLD | NEW |