Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: chrome_frame/test/test_with_web_server.cc

Issue 10830158: Refactor GrabWindowSnapshot and GrabWindowSnapshotImpl names to GrabWindowSnapshotForUser and GrabW… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Enabled tests Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/test_with_web_server.h" 5 #include "chrome_frame/test/test_with_web_server.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/file_version_info.h" 8 #include "base/file_version_info.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 L"xmlhttprequest_test.html"; 691 L"xmlhttprequest_test.html";
692 692
693 TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_XHRTest) { 693 TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_XHRTest) {
694 SimpleBrowserTest(IE, kXMLHttpRequestTestUrl); 694 SimpleBrowserTest(IE, kXMLHttpRequestTestUrl);
695 } 695 }
696 696
697 const wchar_t kInstallFlowTestUrl[] = 697 const wchar_t kInstallFlowTestUrl[] =
698 L"install_flow_test.html"; 698 L"install_flow_test.html";
699 699
700 // crbug.com/139694 700 // crbug.com/139694
701 TEST_F(ChromeFrameTestWithWebServer, DISABLED_FullTabModeIE_InstallFlowTest) { 701 TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_InstallFlowTest) {
702 if (base::win::GetVersion() < base::win::VERSION_VISTA) { 702 if (base::win::GetVersion() < base::win::VERSION_VISTA) {
703 ScopedChromeFrameRegistrar::UnregisterAtPath( 703 ScopedChromeFrameRegistrar::UnregisterAtPath(
704 GetChromeFrameBuildPath().value(), 704 GetChromeFrameBuildPath().value(),
705 chrome_frame_test::GetTestBedType()); 705 chrome_frame_test::GetTestBedType());
706 706
707 ASSERT_TRUE(LaunchBrowser(IE, kInstallFlowTestUrl)); 707 ASSERT_TRUE(LaunchBrowser(IE, kInstallFlowTestUrl));
708 708
709 loop().RunFor(kChromeFrameLongNavigationTimeout); 709 loop().RunFor(kChromeFrameLongNavigationTimeout);
710 710
711 ScopedChromeFrameRegistrar::RegisterAtPath( 711 ScopedChromeFrameRegistrar::RegisterAtPath(
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 }; 896 };
897 897
898 // This test simulates a URL that on first request returns a document 898 // This test simulates a URL that on first request returns a document
899 // that should be rendered in mshtml, then pops up a sign-in page that 899 // that should be rendered in mshtml, then pops up a sign-in page that
900 // after signing in, refreshes the original page that should then return 900 // after signing in, refreshes the original page that should then return
901 // a page that needs to be rendered in GCF. 901 // a page that needs to be rendered in GCF.
902 // 902 //
903 // This test currently fails because GCF does not add the chromeframe header 903 // This test currently fails because GCF does not add the chromeframe header
904 // to requests that mshtml initiates via IInternetSession::CreateBinding. 904 // to requests that mshtml initiates via IInternetSession::CreateBinding.
905 // crbug.com/139694 905 // crbug.com/139694
906 TEST_F(ChromeFrameTestWithWebServer, DISABLED_FullTabModeIE_RefreshMshtmlTest) { 906 TEST_F(ChromeFrameTestWithWebServer, FAILS_FullTabModeIE_RefreshMshtmlTest) {
907 const wchar_t* kPages[] = { 907 const wchar_t* kPages[] = {
908 L"mshtml_refresh_test.html", 908 L"mshtml_refresh_test.html",
909 L"mshtml_refresh_test_popup.html", 909 L"mshtml_refresh_test_popup.html",
910 }; 910 };
911 911
912 SimpleWebServerTest server(46664); 912 SimpleWebServerTest server(46664);
913 server.PopulateStaticFileListT<UaTemplateFileResponse>(kPages, 913 server.PopulateStaticFileListT<UaTemplateFileResponse>(kPages,
914 arraysize(kPages), GetCFTestFilePath()); 914 arraysize(kPages), GetCFTestFilePath());
915 915
916 ASSERT_TRUE(LaunchBrowser(IE, server.FormatHttpPath(kPages[0]).c_str())); 916 ASSERT_TRUE(LaunchBrowser(IE, server.FormatHttpPath(kPages[0]).c_str()));
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 server.web_server()->AddResponse(response); 1054 server.web_server()->AddResponse(response);
1055 1055
1056 std::wstring url(server.FormatHttpPath(L"form.html")); 1056 std::wstring url(server.FormatHttpPath(L"form.html"));
1057 1057
1058 ASSERT_TRUE(LaunchBrowser(IE, url.c_str())); 1058 ASSERT_TRUE(LaunchBrowser(IE, url.c_str()));
1059 loop().RunFor(kChromeFrameLongNavigationTimeout); 1059 loop().RunFor(kChromeFrameLongNavigationTimeout);
1060 1060
1061 EXPECT_EQ(1, response->get_request_count()); 1061 EXPECT_EQ(1, response->get_request_count());
1062 EXPECT_EQ(1, response->post_request_count()); 1062 EXPECT_EQ(1, response->post_request_count());
1063 } 1063 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698