OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 10 |
11 #include "app/app_paths.h" | 11 #include "app/app_paths.h" |
12 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
13 #include "app/win_util.h" | 13 #include "app/win_util.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/debug_util.h" | 15 #include "base/debug_util.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/file_version_info.h" | 17 #include "base/file_version_info.h" |
18 #include "base/i18n/icu_util.h" | 18 #include "base/i18n/icu_util.h" |
19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
20 #include "base/scoped_comptr_win.h" | 20 #include "base/scoped_comptr_win.h" |
21 #include "base/string_util.h" | 21 #include "base/string_util.h" |
22 #include "chrome/browser/automation/automation_provider_list.h" | 22 #include "chrome/browser/automation/automation_provider_list.h" |
23 #include "chrome/browser/browser_prefs.h" | |
24 #include "chrome/browser/plugin_service.h" | 23 #include "chrome/browser/plugin_service.h" |
25 #include "chrome/browser/pref_service.h" | 24 #include "chrome/browser/prefs/browser_prefs.h" |
| 25 #include "chrome/browser/prefs/pref_service.h" |
26 #include "chrome/browser/process_singleton.h" | 26 #include "chrome/browser/process_singleton.h" |
27 #include "chrome/browser/profile_manager.h" | 27 #include "chrome/browser/profile_manager.h" |
28 #include "chrome/browser/renderer_host/render_process_host.h" | 28 #include "chrome/browser/renderer_host/render_process_host.h" |
29 #include "chrome/browser/renderer_host/web_cache_manager.h" | 29 #include "chrome/browser/renderer_host/web_cache_manager.h" |
30 #include "chrome/common/chrome_constants.h" | 30 #include "chrome/common/chrome_constants.h" |
31 #include "chrome/common/chrome_paths.h" | 31 #include "chrome/common/chrome_paths.h" |
32 #include "chrome/common/chrome_paths_internal.h" | 32 #include "chrome/common/chrome_paths_internal.h" |
33 #include "chrome/common/chrome_switches.h" | 33 #include "chrome/common/chrome_switches.h" |
34 #include "chrome/common/notification_service.h" | 34 #include "chrome/common/notification_service.h" |
35 #include "chrome/common/pref_names.h" | 35 #include "chrome/common/pref_names.h" |
36 #include "chrome_frame/utils.h" | |
37 #include "chrome_frame/test/chrome_frame_test_utils.h" | 36 #include "chrome_frame/test/chrome_frame_test_utils.h" |
| 37 #include "chrome_frame/test/net/test_automation_resource_message_filter.h" |
38 #include "chrome_frame/test/simulate_input.h" | 38 #include "chrome_frame/test/simulate_input.h" |
39 #include "chrome_frame/test/win_event_receiver.h" | 39 #include "chrome_frame/test/win_event_receiver.h" |
40 #include "chrome_frame/test/net/test_automation_resource_message_filter.h" | 40 #include "chrome_frame/utils.h" |
41 #include "testing/gtest/include/gtest/gtest.h" | 41 #include "testing/gtest/include/gtest/gtest.h" |
42 | 42 |
43 namespace { | 43 namespace { |
44 | 44 |
45 // A special command line switch to allow developers to manually launch the | 45 // A special command line switch to allow developers to manually launch the |
46 // browser and debug CF inside the browser. | 46 // browser and debug CF inside the browser. |
47 const wchar_t kManualBrowserLaunch[] = L"manual-browser"; | 47 const wchar_t kManualBrowserLaunch[] = L"manual-browser"; |
48 | 48 |
49 // Pops up a message box after the test environment has been set up | 49 // Pops up a message box after the test environment has been set up |
50 // and before tearing it down. Useful for when debugging tests and not | 50 // and before tearing it down. Useful for when debugging tests and not |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 SupplyProxyCredentials credentials("user", "secret"); | 476 SupplyProxyCredentials credentials("user", "secret"); |
477 // Check for a dialog class ("#32770") | 477 // Check for a dialog class ("#32770") |
478 watchdog.AddObserver(&credentials, "#32770"); | 478 watchdog.AddObserver(&credentials, "#32770"); |
479 testing::InitGoogleTest(&argc, argv); | 479 testing::InitGoogleTest(&argc, argv); |
480 FilterDisabledTests(); | 480 FilterDisabledTests(); |
481 PluginService::EnableChromePlugins(false); | 481 PluginService::EnableChromePlugins(false); |
482 CFUrlRequestUnittestRunner test_suite(argc, argv); | 482 CFUrlRequestUnittestRunner test_suite(argc, argv); |
483 test_suite.RunMainUIThread(); | 483 test_suite.RunMainUIThread(); |
484 return 0; | 484 return 0; |
485 } | 485 } |
OLD | NEW |