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

Side by Side Diff: chrome/test/mini_installer_test/switch_builder.cc

Issue 301223007: Delete old mini_installer_test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
(Empty)
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.
4
5 #include "chrome/test/mini_installer_test/switch_builder.h"
6
7 #include "chrome/installer/util/install_util.h"
8
9 namespace installer_test {
10
11 SwitchBuilder::SwitchBuilder()
12 : switches_(CommandLine::NO_PROGRAM) {}
13
14 SwitchBuilder::~SwitchBuilder() {}
15
16 const CommandLine& SwitchBuilder::GetSwitches() const {
17 return switches_;
18 }
19
20 SwitchBuilder& SwitchBuilder::AddChrome() {
21 switches_.AppendSwitch(installer::switches::kChrome);
22 return *this;
23 }
24
25 SwitchBuilder& SwitchBuilder::AddChromeFrame() {
26 switches_.AppendSwitch(installer::switches::kChromeFrame);
27 switches_.AppendSwitch(installer::switches::kDoNotLaunchChrome);
28 switches_.AppendSwitch(installer::switches::kDoNotRegisterForUpdateLaunch);
29 return *this;
30 }
31
32 SwitchBuilder& SwitchBuilder::AddMultiInstall() {
33 switches_.AppendSwitch(installer::switches::kMultiInstall);
34 return *this;
35 }
36
37 SwitchBuilder& SwitchBuilder::AddSystemInstall() {
38 switches_.AppendSwitch(installer::switches::kSystemLevel);
39 return *this;
40 }
41
42 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698