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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 "URLRequestTest.CookiePolicy_ForceSession", | 450 "URLRequestTest.CookiePolicy_ForceSession", |
451 "URLRequestTest.DoNotSendCookies", | 451 "URLRequestTest.DoNotSendCookies", |
452 "URLRequestTest.DoNotSendCookies_ViaPolicy_Async", | 452 "URLRequestTest.DoNotSendCookies_ViaPolicy_Async", |
453 "URLRequestTest.CancelTest_During_OnGetCookies", | 453 "URLRequestTest.CancelTest_During_OnGetCookies", |
454 "URLRequestTest.CancelTest_During_OnSetCookie", | 454 "URLRequestTest.CancelTest_During_OnSetCookie", |
455 | 455 |
456 // These tests are disabled as the rely on functionality provided by | 456 // These tests are disabled as the rely on functionality provided by |
457 // Chrome's HTTP stack like the ability to set the proxy for a URL, etc. | 457 // Chrome's HTTP stack like the ability to set the proxy for a URL, etc. |
458 "URLRequestTestHTTP.ProxyTunnelRedirectTest", | 458 "URLRequestTestHTTP.ProxyTunnelRedirectTest", |
459 "URLRequestTestHTTP.UnexpectedServerAuthTest", | 459 "URLRequestTestHTTP.UnexpectedServerAuthTest", |
| 460 |
| 461 // This test is disabled as it expects an empty UA to be echoed back from |
| 462 // the server which is not the case in ChromeFrame. |
| 463 "URLRequestTestHTTP.DefaultUserAgent", |
460 }; | 464 }; |
461 | 465 |
462 std::string filter("-"); // All following filters will be negative. | 466 std::string filter("-"); // All following filters will be negative. |
463 for (int i = 0; i < arraysize(disabled_tests); ++i) { | 467 for (int i = 0; i < arraysize(disabled_tests); ++i) { |
464 if (i > 0) | 468 if (i > 0) |
465 filter += ":"; | 469 filter += ":"; |
466 filter += disabled_tests[i]; | 470 filter += disabled_tests[i]; |
467 } | 471 } |
468 | 472 |
469 ::testing::FLAGS_gtest_filter = filter; | 473 ::testing::FLAGS_gtest_filter = filter; |
(...skipping 28 matching lines...) Expand all Loading... |
498 // See url_request_unittest.cc for these credentials. | 502 // See url_request_unittest.cc for these credentials. |
499 SupplyProxyCredentials credentials("user", "secret"); | 503 SupplyProxyCredentials credentials("user", "secret"); |
500 watchdog.AddObserver(&credentials, "Windows Security", ""); | 504 watchdog.AddObserver(&credentials, "Windows Security", ""); |
501 testing::InitGoogleTest(&argc, argv); | 505 testing::InitGoogleTest(&argc, argv); |
502 FilterDisabledTests(); | 506 FilterDisabledTests(); |
503 PluginService::EnableChromePlugins(false); | 507 PluginService::EnableChromePlugins(false); |
504 CFUrlRequestUnittestRunner test_suite(argc, argv); | 508 CFUrlRequestUnittestRunner test_suite(argc, argv); |
505 test_suite.RunMainUIThread(); | 509 test_suite.RunMainUIThread(); |
506 return 0; | 510 return 0; |
507 } | 511 } |
OLD | NEW |