| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 #include "chrome_frame/test/win_event_receiver.h" | 56 #include "chrome_frame/test/win_event_receiver.h" |
| 57 #include "chrome_frame/utils.h" | 57 #include "chrome_frame/utils.h" |
| 58 #include "content/public/app/content_main.h" | 58 #include "content/public/app/content_main.h" |
| 59 #include "content/public/app/startup_helper_win.h" | 59 #include "content/public/app/startup_helper_win.h" |
| 60 #include "content/public/browser/browser_thread.h" | 60 #include "content/public/browser/browser_thread.h" |
| 61 #include "content/public/browser/notification_service.h" | 61 #include "content/public/browser/notification_service.h" |
| 62 #include "content/public/browser/render_process_host.h" | 62 #include "content/public/browser/render_process_host.h" |
| 63 #include "content/public/common/content_client.h" | 63 #include "content/public/common/content_client.h" |
| 64 #include "content/public/common/content_paths.h" | 64 #include "content/public/common/content_paths.h" |
| 65 #include "net/base/net_util.h" | 65 #include "net/base/net_util.h" |
| 66 #include "sandbox/src/sandbox_types.h" | 66 #include "sandbox/win/src/sandbox_types.h" |
| 67 #include "testing/gtest/include/gtest/gtest.h" | 67 #include "testing/gtest/include/gtest/gtest.h" |
| 68 #include "ui/base/resource/resource_bundle.h" | 68 #include "ui/base/resource/resource_bundle.h" |
| 69 #include "ui/base/ui_base_paths.h" | 69 #include "ui/base/ui_base_paths.h" |
| 70 | 70 |
| 71 using content::BrowserThread; | 71 using content::BrowserThread; |
| 72 | 72 |
| 73 namespace { | 73 namespace { |
| 74 | 74 |
| 75 // We must store this globally so that our main delegate can set it. | 75 // We must store this globally so that our main delegate can set it. |
| 76 static CFUrlRequestUnittestRunner* g_test_suite = NULL; | 76 static CFUrlRequestUnittestRunner* g_test_suite = NULL; |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 // content::InitializeSandboxInfo(&sandbox_info); | 904 // content::InitializeSandboxInfo(&sandbox_info); |
| 905 FakeMainDelegate delegate; | 905 FakeMainDelegate delegate; |
| 906 content::ContentMain( | 906 content::ContentMain( |
| 907 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)), | 907 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)), |
| 908 &sandbox_info, | 908 &sandbox_info, |
| 909 &delegate); | 909 &delegate); |
| 910 | 910 |
| 911 // Note: In debug builds, we ExitProcess during PostDestroyThreads. | 911 // Note: In debug builds, we ExitProcess during PostDestroyThreads. |
| 912 return g_test_suite->test_result(); | 912 return g_test_suite->test_result(); |
| 913 } | 913 } |
| OLD | NEW |