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

Unified Diff: chrome_frame/test/chrome_frame_unittests.h

Issue 430002: Unit test for back/forward for url fragments. Improvements in the testing... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/chrome_frame_test_utils.cc ('k') | chrome_frame/test/chrome_frame_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/chrome_frame_unittests.h
===================================================================
--- chrome_frame/test/chrome_frame_unittests.h (revision 32869)
+++ chrome_frame/test/chrome_frame_unittests.h (working copy)
@@ -128,16 +128,7 @@
Uninitialize();
}
- void Uninitialize() {
- chrome_frame_ = NULL;
- if (web_browser2_.get()) {
- DispEventUnadvise(web_browser2_);
- web_browser2_->Quit();
- web_browser2_.Release();
- // Give IE some time to quit and release our references
- Sleep(1000);
- }
- }
+ void Uninitialize();
// Helper function to launch IE and navigate to a URL.
// Returns S_OK on success, S_FALSE if the test was not run, other
@@ -146,6 +137,13 @@
HRESULT Navigate(const std::wstring& navigate_url);
+ // Set input focus to chrome frame window.
+ void SetFocusToChrome();
+
+ // Send keyboard input to the renderer window hosted in chrome using
+ // SendInput API
+ void SendInputToChrome(const std::string& input_string);
+
BEGIN_COM_MAP(WebBrowserEventSink)
END_COM_MAP()
@@ -212,7 +210,8 @@
HRESULT OnLoadErrorInternal(const VARIANT* param);
HRESULT OnMessageInternal(const VARIANT* param);
- void ConnectToChromeFrame();
+ void ConnectToChromeFrame();
+ HWND GetChromeRendererWindow();
public:
ScopedComPtr<IWebBrowser2> web_browser2_;
« no previous file with comments | « chrome_frame/test/chrome_frame_test_utils.cc ('k') | chrome_frame/test/chrome_frame_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698