OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 if (chrome_frame_test::GetInstalledIEVersion() == IE_9) { | 498 if (chrome_frame_test::GetInstalledIEVersion() == IE_9) { |
499 // Adding this here as the command line and the logging stuff gets | 499 // Adding this here as the command line and the logging stuff gets |
500 // initialized in the NetTestSuite constructor. Did not want to break that. | 500 // initialized in the NetTestSuite constructor. Did not want to break that. |
501 base::AtExitManager at_exit_manager; | 501 base::AtExitManager at_exit_manager; |
502 CommandLine::Init(argc, argv); | 502 CommandLine::Init(argc, argv); |
503 CFUrlRequestUnittestRunner::InitializeLogging(); | 503 CFUrlRequestUnittestRunner::InitializeLogging(); |
504 LOG(INFO) << "Not running ChromeFrame net tests on IE9"; | 504 LOG(INFO) << "Not running ChromeFrame net tests on IE9"; |
505 return 0; | 505 return 0; |
506 } | 506 } |
507 | 507 |
508 return 0; | |
509 | |
510 // TODO(tommi): Stuff be broke. Needs a fixin'. | 508 // TODO(tommi): Stuff be broke. Needs a fixin'. |
511 #if 0 | |
512 // This is awkward: the TestSuite derived CFUrlRequestUnittestRunner contains | 509 // This is awkward: the TestSuite derived CFUrlRequestUnittestRunner contains |
513 // the instance of the AtExitManager that RegisterPathProvider() and others | 510 // the instance of the AtExitManager that RegisterPathProvider() and others |
514 // below require. So we have to instantiate this first. | 511 // below require. So we have to instantiate this first. |
515 CFUrlRequestUnittestRunner test_suite(argc, argv); | 512 CFUrlRequestUnittestRunner test_suite(argc, argv); |
516 | 513 |
517 // Register paths needed by the ScopedChromeFrameRegistrar. | 514 // Register paths needed by the ScopedChromeFrameRegistrar. |
518 chrome::RegisterPathProvider(); | 515 chrome::RegisterPathProvider(); |
519 ScopedChromeFrameRegistrar registrar(chrome_frame_test::GetTestBedType()); | 516 ScopedChromeFrameRegistrar registrar(chrome_frame_test::GetTestBedType()); |
520 | 517 |
521 WindowWatchdog watchdog; | 518 WindowWatchdog watchdog; |
522 // See url_request_unittest.cc for these credentials. | 519 // See url_request_unittest.cc for these credentials. |
523 SupplyProxyCredentials credentials("user", "secret"); | 520 SupplyProxyCredentials credentials("user", "secret"); |
524 watchdog.AddObserver(&credentials, "Windows Security", ""); | 521 watchdog.AddObserver(&credentials, "Windows Security", ""); |
525 testing::InitGoogleTest(&argc, argv); | 522 testing::InitGoogleTest(&argc, argv); |
526 FilterDisabledTests(); | 523 FilterDisabledTests(); |
527 PluginService::EnableChromePlugins(false); | 524 PluginService::EnableChromePlugins(false); |
528 test_suite.RunMainUIThread(); | 525 test_suite.RunMainUIThread(); |
529 return 0; | 526 return 0; |
530 #endif | |
531 } | 527 } |
OLD | NEW |