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

Unified Diff: chrome_frame/test/test_mock_with_web_server.h

Issue 2173002: Add chrome frame tests for common navigation cases to ensure IE is not broken. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: final Created 10 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/test/simulate_input.cc ('k') | chrome_frame/test/test_mock_with_web_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/test_mock_with_web_server.h
diff --git a/chrome_frame/test/test_mock_with_web_server.h b/chrome_frame/test/test_mock_with_web_server.h
index 53fccb15a3f99528cf3bbba572026d5fa2b38ea6..2d71721842d10f61f66a8576ff84a29c3294db55 100644
--- a/chrome_frame/test/test_mock_with_web_server.h
+++ b/chrome_frame/test/test_mock_with_web_server.h
@@ -75,15 +75,22 @@ class MockWebBrowserEventSink : public chrome_frame_test::WebBrowserEventSink {
MOCK_METHOD2(OnWindowDetected, void (HWND hwnd, // NOLINT
const std::string& caption));
- // Test expectations
+ // Test expectations for general navigations.
ExpectationSet ExpectNavigationCardinality(const std::wstring& url,
testing::Cardinality cardinality);
ExpectationSet ExpectNavigation(const std::wstring& url);
ExpectationSet ExpectNavigationAndSwitch(const std::wstring& url);
ExpectationSet ExpectNavigationAndSwitchSequence(const std::wstring& url);
ExpectationSet ExpectNewWindow(MockWebBrowserEventSink* new_window_mock);
- ExpectationSet MockWebBrowserEventSink::ExpectNavigationSequenceForAnchors(
- const std::wstring& url);
+ ExpectationSet ExpectNavigationSequenceForAnchors(const std::wstring& url);
+
+ // Test expectations for navigations with an IE renderer.
+ // Expect one navigation to occur.
+ ExpectationSet ExpectNavigationInIE(const std::wstring& url);
+ // Expect a new window to be opened to |url|. Set |new_window_mock| as the new
+ // window.
+ ExpectationSet ExpectNewWindowWithIE(
+ const std::wstring& url, MockWebBrowserEventSink* new_window_mock);
};
ACTION_P(CloseBrowserMock, mock) {
« no previous file with comments | « chrome_frame/test/simulate_input.cc ('k') | chrome_frame/test/test_mock_with_web_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698