| 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> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/debug/debugger.h" | 14 #include "base/debug/debugger.h" |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/file_version_info.h" | 16 #include "base/file_version_info.h" |
| 17 #include "base/files/scoped_temp_dir.h" |
| 17 #include "base/i18n/icu_util.h" | 18 #include "base/i18n/icu_util.h" |
| 18 #include "base/lazy_instance.h" | 19 #include "base/lazy_instance.h" |
| 19 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| 20 #include "base/path_service.h" | 21 #include "base/path_service.h" |
| 21 #include "base/prefs/json_pref_store.h" | 22 #include "base/prefs/json_pref_store.h" |
| 22 #include "base/scoped_temp_dir.h" | |
| 23 #include "base/string_piece.h" | 23 #include "base/string_piece.h" |
| 24 #include "base/string_util.h" | 24 #include "base/string_util.h" |
| 25 #include "base/stringprintf.h" | 25 #include "base/stringprintf.h" |
| 26 #include "base/system_monitor/system_monitor.h" | 26 #include "base/system_monitor/system_monitor.h" |
| 27 #include "base/test/test_timeouts.h" | 27 #include "base/test/test_timeouts.h" |
| 28 #include "base/threading/platform_thread.h" | 28 #include "base/threading/platform_thread.h" |
| 29 #include "base/threading/thread.h" | 29 #include "base/threading/thread.h" |
| 30 #include "base/win/scoped_comptr.h" | 30 #include "base/win/scoped_comptr.h" |
| 31 #include "base/win/scoped_handle.h" | 31 #include "base/win/scoped_handle.h" |
| 32 #include "chrome/app/chrome_main_delegate.h" | 32 #include "chrome/app/chrome_main_delegate.h" |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 372 |
| 373 virtual MetricsService* metrics_service() OVERRIDE { | 373 virtual MetricsService* metrics_service() OVERRIDE { |
| 374 return NULL; | 374 return NULL; |
| 375 } | 375 } |
| 376 | 376 |
| 377 void DestroyProfileManager() { | 377 void DestroyProfileManager() { |
| 378 profile_manager_.reset(); | 378 profile_manager_.reset(); |
| 379 } | 379 } |
| 380 | 380 |
| 381 private: | 381 private: |
| 382 ScopedTempDir profiles_dir_; | 382 base::ScopedTempDir profiles_dir_; |
| 383 scoped_ptr<ProfileManager> profile_manager_; | 383 scoped_ptr<ProfileManager> profile_manager_; |
| 384 }; | 384 }; |
| 385 | 385 |
| 386 class SupplyProxyCredentials : public WindowObserver { | 386 class SupplyProxyCredentials : public WindowObserver { |
| 387 public: | 387 public: |
| 388 SupplyProxyCredentials(const char* username, const char* password); | 388 SupplyProxyCredentials(const char* username, const char* password); |
| 389 | 389 |
| 390 protected: | 390 protected: |
| 391 struct DialogProps { | 391 struct DialogProps { |
| 392 HWND username_; | 392 HWND username_; |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 // content::InitializeSandboxInfo(&sandbox_info); | 950 // content::InitializeSandboxInfo(&sandbox_info); |
| 951 FakeMainDelegate delegate; | 951 FakeMainDelegate delegate; |
| 952 content::ContentMain( | 952 content::ContentMain( |
| 953 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)), | 953 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)), |
| 954 &sandbox_info, | 954 &sandbox_info, |
| 955 &delegate); | 955 &delegate); |
| 956 | 956 |
| 957 // Note: In debug builds, we ExitProcess during PostDestroyThreads. | 957 // Note: In debug builds, we ExitProcess during PostDestroyThreads. |
| 958 return g_test_suite->test_result(); | 958 return g_test_suite->test_result(); |
| 959 } | 959 } |
| OLD | NEW |