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

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

Issue 3549006: Top level navigations are not sent to the host browser in the ChromeFrame NPA... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
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 22 matching lines...) Expand all
33 33
34 mock_server_.ExpectAndServeAnyRequests(CFInvocation(CFInvocation::NONE)); 34 mock_server_.ExpectAndServeAnyRequests(CFInvocation(CFInvocation::NONE));
35 35
36 FilePath profile_path( 36 FilePath profile_path(
37 chrome_frame_test::GetProfilePath(profile_name)); 37 chrome_frame_test::GetProfilePath(profile_name));
38 38
39 automation_client_ = new ChromeFrameAutomationClient; 39 automation_client_ = new ChromeFrameAutomationClient;
40 GURL empty; 40 GURL empty;
41 scoped_refptr<ChromeFrameLaunchParams> clp( 41 scoped_refptr<ChromeFrameLaunchParams> clp(
42 new ChromeFrameLaunchParams(empty, empty, profile_path, profile_name, 42 new ChromeFrameLaunchParams(empty, empty, profile_path, profile_name,
43 extra_chrome_arguments, incognito, is_widget_mode)); 43 extra_chrome_arguments, incognito, is_widget_mode, false));
44 clp->set_launch_timeout(launch_timeout); 44 clp->set_launch_timeout(launch_timeout);
45 clp->set_version_check(perform_version_check); 45 clp->set_version_check(perform_version_check);
46 automation_client_->Initialize(this, clp); 46 automation_client_->Initialize(this, clp);
47 } 47 }
48 ~AutomationMockDelegate() { 48 ~AutomationMockDelegate() {
49 if (automation_client_.get()) { 49 if (automation_client_.get()) {
50 automation_client_->Uninitialize(); 50 automation_client_->Uninitialize();
51 automation_client_ = NULL; 51 automation_client_ = NULL;
52 } 52 }
53 if (IsWindow()) 53 if (IsWindow())
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual void OnLoad(int tab_handle, const GURL& url) { 223 virtual void OnLoad(int tab_handle, const GURL& url) {
224 Base::OnLoad(tab_handle, url); 224 Base::OnLoad(tab_handle, url);
225 } 225 }
226 private: 226 private:
227 bool request_start_result_; 227 bool request_start_result_;
228 }; 228 };
229 229
230 230
231 #endif // CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_ 231 #endif // CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_
232 232
OLDNEW
« no previous file with comments | « chrome_frame/test/automation_client_mock.cc ('k') | chrome_frame/test/data/src_property_frame1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698