Allow overlapping sync and async startup requests
[chromium-blink-merge.git] / chrome / test / mini_installer_test / switch_builder.h
blob1e9ab05697eebddd356e6c6490f134d4b0d19850
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 #ifndef CHROME_TEST_MINI_INSTALLER_TEST_SWITCH_BUILDER_H_
6 #define CHROME_TEST_MINI_INSTALLER_TEST_SWITCH_BUILDER_H_
8 #include "base/basictypes.h"
9 #include "base/command_line.h"
11 namespace installer_test {
13 // Builds commandline arguments for Chrome installation.
14 class SwitchBuilder {
15 public:
16 SwitchBuilder();
17 ~SwitchBuilder();
19 const CommandLine& GetSwitches() const;
21 SwitchBuilder& AddChrome();
22 SwitchBuilder& AddChromeFrame();
23 SwitchBuilder& AddMultiInstall();
24 SwitchBuilder& AddReadyMode();
25 SwitchBuilder& AddSystemInstall();
27 private:
28 CommandLine switches_;
29 DISALLOW_COPY_AND_ASSIGN(SwitchBuilder);
32 } // namespace
34 #endif // CHROME_TEST_MINI_INSTALLER_TEST_SWITCH_BUILDER_H_