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