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

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

Issue 14030003: Remove Chrome Frame's delay shutdown field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dear Greg Created 7 years, 8 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/proxy_factory_mock.cc » ('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) 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 #ifndef CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_ 5 #ifndef CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_
6 #define CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_ 6 #define CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 mock_server_.ExpectAndServeAnyRequests(CFInvocation(CFInvocation::NONE)); 42 mock_server_.ExpectAndServeAnyRequests(CFInvocation(CFInvocation::NONE));
43 43
44 base::FilePath profile_path; 44 base::FilePath profile_path;
45 GetChromeFrameProfilePath(profile_name, &profile_path); 45 GetChromeFrameProfilePath(profile_name, &profile_path);
46 chrome_frame_test::OverrideDataDirectoryForThisTest(profile_path.value()); 46 chrome_frame_test::OverrideDataDirectoryForThisTest(profile_path.value());
47 47
48 automation_client_ = new ChromeFrameAutomationClient; 48 automation_client_ = new ChromeFrameAutomationClient;
49 GURL empty; 49 GURL empty;
50 scoped_refptr<ChromeFrameLaunchParams> clp( 50 scoped_refptr<ChromeFrameLaunchParams> clp(
51 new ChromeFrameLaunchParams(empty, empty, profile_path, profile_name, 51 new ChromeFrameLaunchParams(empty, empty, profile_path, profile_name,
52 language, incognito, is_widget_mode, false, false)); 52 language, incognito, is_widget_mode, false));
53 clp->set_launch_timeout(launch_timeout); 53 clp->set_launch_timeout(launch_timeout);
54 clp->set_version_check(perform_version_check); 54 clp->set_version_check(perform_version_check);
55 automation_client_->Initialize(this, clp); 55 automation_client_->Initialize(this, clp);
56 } 56 }
57 ~AutomationMockDelegate() { 57 ~AutomationMockDelegate() {
58 if (automation_client_.get()) { 58 if (automation_client_.get()) {
59 automation_client_->Uninitialize(); 59 automation_client_->Uninitialize();
60 automation_client_ = NULL; 60 automation_client_ = NULL;
61 } 61 }
62 if (IsWindow()) 62 if (IsWindow())
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 QuitMessageLoop(); 231 QuitMessageLoop();
232 } 232 }
233 virtual void OnLoad(const GURL& url) { 233 virtual void OnLoad(const GURL& url) {
234 Base::OnLoad(url); 234 Base::OnLoad(url);
235 } 235 }
236 private: 236 private:
237 bool request_start_result_; 237 bool request_start_result_;
238 }; 238 };
239 239
240 #endif // CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_ 240 #endif // CHROME_FRAME_TEST_CHROME_FRAME_AUTOMATION_MOCK_H_
OLDNEW
« no previous file with comments | « chrome_frame/test/automation_client_mock.cc ('k') | chrome_frame/test/proxy_factory_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698