blob: 1a42a6070a93c02d17a255ae2fc31df618736541 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file declares helper functions for use in tests that expect a valid
// installation, possibly of a specific type. Validation violations result in
// test failures.
#ifndef CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATION_HELPER_H_
#define CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATION_HELPER_H_
#include "chrome/installer/util/installation_validator.h"
namespace installer {
class InstallationState;
// Evaluates the machine's current installation at level |system_level|.
// Returns the type of installation found.
InstallationValidator::InstallationType ExpectValidInstallation(
bool system_level);
// Evaluates |machine_state| at level |system_level|. Returns the type of
// installation found.
InstallationValidator::InstallationType ExpectValidInstallationForState(
const InstallationState& machine_state,
bool system_level);
// Evaluates the machine's current installation at level |system_level|,
// expecting an installation of the given |type|.
void ExpectInstallationOfType(
bool system_level,
InstallationValidator::InstallationType type);
// Evaluates |machine_state| at level |system_level|, expecting an installation
// of the given |type|.
void ExpectInstallationOfTypeForState(
const InstallationState& machine_state,
bool system_level,
InstallationValidator::InstallationType type);
} // namespace installer
#endif // CHROME_INSTALLER_UTIL_INSTALLATION_VALIDATION_HELPER_H_
|