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

Side by Side Diff: chrome/installer/mini_installer/configuration_test.cc

Issue 2834973002: Revert of Enable side-by-side beta and dev channels. (Closed)
Patch Set: Created 3 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
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 #include "chrome/installer/mini_installer/configuration.h" 5 #include "chrome/installer/mini_installer/configuration.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 #else 171 #else
172 EXPECT_FALSE( 172 EXPECT_FALSE(
173 TestConfiguration(L"spam.exe --system-level").is_updating_multi_chrome()); 173 TestConfiguration(L"spam.exe --system-level").is_updating_multi_chrome());
174 #endif 174 #endif
175 } 175 }
176 176
177 #if defined(GOOGLE_CHROME_BUILD) 177 #if defined(GOOGLE_CHROME_BUILD)
178 TEST_F(MiniInstallerConfigurationTest, ChromeAppGuid) { 178 TEST_F(MiniInstallerConfigurationTest, ChromeAppGuid) {
179 EXPECT_STREQ(google_update::kAppGuid, 179 EXPECT_STREQ(google_update::kAppGuid,
180 TestConfiguration(L"spam.exe").chrome_app_guid()); 180 TestConfiguration(L"spam.exe").chrome_app_guid());
181 EXPECT_STREQ(google_update::kBetaAppGuid,
182 TestConfiguration(L"spam.exe --chrome-beta").chrome_app_guid());
183 EXPECT_STREQ(google_update::kDevAppGuid,
184 TestConfiguration(L"spam.exe --chrome-dev").chrome_app_guid());
185 EXPECT_STREQ(google_update::kSxSAppGuid, 181 EXPECT_STREQ(google_update::kSxSAppGuid,
186 TestConfiguration(L"spam.exe --chrome-sxs").chrome_app_guid()); 182 TestConfiguration(L"spam.exe --chrome-sxs").chrome_app_guid());
187 } 183 }
188 #endif 184 #endif
189 185
190 TEST_F(MiniInstallerConfigurationTest, IsSystemLevel) { 186 TEST_F(MiniInstallerConfigurationTest, IsSystemLevel) {
191 EXPECT_FALSE(TestConfiguration(L"spam.exe").is_system_level()); 187 EXPECT_FALSE(TestConfiguration(L"spam.exe").is_system_level());
192 EXPECT_FALSE(TestConfiguration(L"spam.exe --chrome").is_system_level()); 188 EXPECT_FALSE(TestConfiguration(L"spam.exe --chrome").is_system_level());
193 EXPECT_TRUE(TestConfiguration(L"spam.exe --system-level").is_system_level()); 189 EXPECT_TRUE(TestConfiguration(L"spam.exe --system-level").is_system_level());
194 190
195 { 191 {
196 ScopedGoogleUpdateIsMachine env_setter(false); 192 ScopedGoogleUpdateIsMachine env_setter(false);
197 EXPECT_FALSE(TestConfiguration(L"spam.exe").is_system_level()); 193 EXPECT_FALSE(TestConfiguration(L"spam.exe").is_system_level());
198 } 194 }
199 195
200 { 196 {
201 ScopedGoogleUpdateIsMachine env_setter(true); 197 ScopedGoogleUpdateIsMachine env_setter(true);
202 EXPECT_TRUE(TestConfiguration(L"spam.exe").is_system_level()); 198 EXPECT_TRUE(TestConfiguration(L"spam.exe").is_system_level());
203 } 199 }
204 } 200 }
205 201
206 TEST_F(MiniInstallerConfigurationTest, HasInvalidSwitch) { 202 TEST_F(MiniInstallerConfigurationTest, HasInvalidSwitch) {
207 EXPECT_FALSE(TestConfiguration(L"spam.exe").has_invalid_switch()); 203 EXPECT_FALSE(TestConfiguration(L"spam.exe").has_invalid_switch());
208 EXPECT_TRUE(TestConfiguration(L"spam.exe --chrome-frame") 204 EXPECT_TRUE(TestConfiguration(L"spam.exe --chrome-frame")
209 .has_invalid_switch()); 205 .has_invalid_switch());
210 } 206 }
211 207
212 } // namespace mini_installer 208 } // namespace mini_installer
OLDNEW
« no previous file with comments | « chrome/installer/mini_installer/configuration.cc ('k') | chrome/installer/setup/install_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698