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

Side by Side Diff: chrome_frame/test/chrome_frame_automation_mock.h

Issue 3061036: Handle automation server crashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome_frame/test/automation_client_mock.cc ('k') | chrome_frame/test/ie_event_sink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 #ifndef CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_ 4 #ifndef CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_
5 #define CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_ 5 #define CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 14 matching lines...) Expand all
25 const std::wstring& extra_chrome_arguments, bool incognito, 25 const std::wstring& extra_chrome_arguments, bool incognito,
26 bool is_widget_mode) 26 bool is_widget_mode)
27 : caller_message_loop_(caller_message_loop), is_connected_(false), 27 : caller_message_loop_(caller_message_loop), is_connected_(false),
28 navigation_result_(false) { 28 navigation_result_(false) {
29 test_server_.SetUp(); 29 test_server_.SetUp();
30 30
31 FilePath profile_path( 31 FilePath profile_path(
32 chrome_frame_test::GetProfilePath(profile_name)); 32 chrome_frame_test::GetProfilePath(profile_name));
33 33
34 automation_client_ = new ChromeFrameAutomationClient; 34 automation_client_ = new ChromeFrameAutomationClient;
35 ChromeFrameLaunchParams clp = { 35 GURL empty;
36 launch_timeout, 36 scoped_refptr<ChromeFrameLaunchParams> clp(
37 GURL(), 37 new ChromeFrameLaunchParams(empty, empty, profile_path, profile_name,
38 GURL(), 38 extra_chrome_arguments, incognito, is_widget_mode));
39 profile_path, 39 clp->set_launch_timeout(launch_timeout);
40 profile_name, 40 clp->set_version_check(perform_version_check);
41 extra_chrome_arguments,
42 perform_version_check,
43 incognito,
44 is_widget_mode
45 };
46 automation_client_->Initialize(this, clp); 41 automation_client_->Initialize(this, clp);
47 } 42 }
48 ~AutomationMockDelegate() { 43 ~AutomationMockDelegate() {
49 if (automation_client_.get()) { 44 if (automation_client_.get()) {
50 automation_client_->Uninitialize(); 45 automation_client_->Uninitialize();
51 automation_client_ = NULL; 46 automation_client_ = NULL;
52 } 47 }
53 if (IsWindow()) 48 if (IsWindow())
54 DestroyWindow(); 49 DestroyWindow();
55 50
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 virtual void OnLoad(int tab_handle, const GURL& url) { 220 virtual void OnLoad(int tab_handle, const GURL& url) {
226 Base::OnLoad(tab_handle, url); 221 Base::OnLoad(tab_handle, url);
227 } 222 }
228 private: 223 private:
229 bool request_start_result_; 224 bool request_start_result_;
230 }; 225 };
231 226
232 227
233 #endif // CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_ 228 #endif // CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_
234 229
OLDNEW
« no previous file with comments | « chrome_frame/test/automation_client_mock.cc ('k') | chrome_frame/test/ie_event_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698