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
3 // found in the LICENSE file.
5 #include "chrome/test/mini_installer_test/switch_builder.h"
7 #include "chrome/installer/util/install_util.h"
9 namespace installer_test
{
11 SwitchBuilder::SwitchBuilder()
12 : switches_(CommandLine::NO_PROGRAM
) {}
14 SwitchBuilder::~SwitchBuilder() {}
16 const CommandLine
& SwitchBuilder::GetSwitches() const {
20 SwitchBuilder
& SwitchBuilder::AddChrome() {
21 switches_
.AppendSwitch(installer::switches::kChrome
);
25 SwitchBuilder
& SwitchBuilder::AddChromeFrame() {
26 switches_
.AppendSwitch(installer::switches::kChromeFrame
);
27 switches_
.AppendSwitch(installer::switches::kDoNotLaunchChrome
);
28 switches_
.AppendSwitch(installer::switches::kDoNotRegisterForUpdateLaunch
);
32 SwitchBuilder
& SwitchBuilder::AddMultiInstall() {
33 switches_
.AppendSwitch(installer::switches::kMultiInstall
);
37 SwitchBuilder
& SwitchBuilder::AddReadyMode() {
38 switches_
.AppendSwitch(installer::switches::kChromeFrameReadyMode
);
42 SwitchBuilder
& SwitchBuilder::AddSystemInstall() {
43 switches_
.AppendSwitch(installer::switches::kSystemLevel
);