blob: 273adfe71b8c7d184d5ca87a7b593e2cc7396192 [file] [log] [blame]
// Copyright 2020 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.
#include "chrome/updater/test/integration_tests.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace updater {
namespace test {
class IntegrationTest : public ::testing::Test {
protected:
void SetUp() override {
Clean();
ExpectClean();
}
void TearDown() override {
ExpectClean();
Clean();
}
private:
base::test::TaskEnvironment environment_;
};
TEST_F(IntegrationTest, InstallUninstall) {
Install();
ExpectInstalled();
#if defined(OS_MACOSX)
PromoteCandidate();
ExpectActive();
#endif // OS_MACOSX
Uninstall();
}
} // namespace test
} // namespace updater