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

Side by Side Diff: chrome/test/mini_installer_test/chrome_mini_installer.h

Issue 8384002: Add test for Chrome install with existing Chrome Frame Multi-install (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/mini_installer_test/chrome_mini_installer.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TEST_MINI_INSTALLER_TEST_CHROME_MINI_INSTALLER_H_ 5 #ifndef CHROME_TEST_MINI_INSTALLER_TEST_CHROME_MINI_INSTALLER_H_
6 #define CHROME_TEST_MINI_INSTALLER_TEST_CHROME_MINI_INSTALLER_H_ 6 #define CHROME_TEST_MINI_INSTALLER_TEST_CHROME_MINI_INSTALLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "chrome/installer/util/browser_distribution.h" 15 #include "chrome/installer/util/browser_distribution.h"
16 16
17 // This class has methods to install and uninstall Chrome mini installer. 17 // This class has methods to install and uninstall Chrome mini installer.
18 class ChromeMiniInstaller { 18 class ChromeMiniInstaller {
19 public: 19 public:
20 ChromeMiniInstaller(bool system_install, 20 ChromeMiniInstaller(bool system_install,
21 bool is_chrome_frame, const std::string& build); 21 bool is_chrome_frame, const std::string& build);
22 ~ChromeMiniInstaller() {} 22 ~ChromeMiniInstaller() {}
23 23
24 enum RepairChrome { 24 enum RepairChrome {
25 REGISTRY, 25 REGISTRY,
26 VERSION_FOLDER 26 VERSION_FOLDER
27 }; 27 };
28 28
29 // This method returns path to either program files 29 // This method returns path to either program files
30 // or documents and setting based on the install type. 30 // or documents and setting based on the install type
31 bool GetChromeInstallDirectoryLocation(FilePath* path); 31 // this could be the location of Chrome or Chrome Frame.
kkania 2011/10/29 00:10:54 proper english
Huyen 2011/10/29 22:32:33 good catch, I was a bit lazy in updating the exist
32 bool GetInstallDirectory(FilePath* path);
33
32 // Get the base multi-install command. 34 // Get the base multi-install command.
33 CommandLine GetBaseMultiInstallCommand(); 35 CommandLine GetBaseMultiInstallCommand();
34 36
35 // Installs the latest full installer. 37 // Installs the latest full installer.
36 void InstallFullInstaller(bool over_install); 38 void InstallFullInstaller(bool over_install);
37 39
38 void InstallChromeUsingMultiInstall(); 40 void InstallChromeUsingMultiInstall();
39 void InstallChromeFrameUsingMultiInstall(); 41 void InstallChromeFrameUsingMultiInstall();
40 void InstallChromeAndChromeFrame(bool ready_mode); 42 void InstallChromeAndChromeFrame(bool ready_mode);
41 43
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 119
118 // This method will verify if ChromeFrame got successfully installed on the 120 // This method will verify if ChromeFrame got successfully installed on the
119 // machine. 121 // machine.
120 void VerifyChromeFrameInstall(); 122 void VerifyChromeFrameInstall();
121 123
122 // Launch IE with |navigate_url|. 124 // Launch IE with |navigate_url|.
123 void LaunchIE(const std::wstring& navigate_url); 125 void LaunchIE(const std::wstring& navigate_url);
124 126
125 // Run installer using provided |command|. 127 // Run installer using provided |command|.
126 void RunInstaller(const CommandLine& command); 128 void RunInstaller(const CommandLine& command);
129 void RunInstallerCommand(const CommandLine& command);
kkania 2011/10/29 00:10:54 i have no idea what the difference between these m
Huyen 2011/10/29 22:32:33 good catch, I meant to remove RunInstaller(). RunC
127 130
128 // Compares the registry key values after overinstall. 131 // Compares the registry key values after overinstall.
129 bool VerifyOverInstall(const std::string& reg_key_value_before_overinstall, 132 bool VerifyOverInstall(const std::string& reg_key_value_before_overinstall,
130 const std::string& reg_key_value_after_overinstall); 133 const std::string& reg_key_value_after_overinstall);
131 134
132 // This method will verify if the installed build is correct. 135 // This method will verify if the installed build is correct.
133 bool VerifyStandaloneInstall(); 136 bool VerifyStandaloneInstall();
134 137
135 // This method will create a command line to run apply tag. 138 // This method will create a command line to run apply tag.
136 CommandLine GetCommandForTagging(); 139 CommandLine GetCommandForTagging();
(...skipping 15 matching lines...) Expand all
152 155
153 // Build under test. 156 // Build under test.
154 std::string build_; 157 std::string build_;
155 // Build numbers. 158 // Build numbers.
156 std::string current_build_, current_diff_build_, previous_build_; 159 std::string current_build_, current_diff_build_, previous_build_;
157 160
158 DISALLOW_COPY_AND_ASSIGN(ChromeMiniInstaller); 161 DISALLOW_COPY_AND_ASSIGN(ChromeMiniInstaller);
159 }; 162 };
160 163
161 #endif // CHROME_TEST_MINI_INSTALLER_TEST_CHROME_MINI_INSTALLER_H_ 164 #endif // CHROME_TEST_MINI_INSTALLER_TEST_CHROME_MINI_INSTALLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/mini_installer_test/chrome_mini_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698