| // 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 |