install_result_code_unittest.cc 636 B

12345678910111213141516171819
  1. // Copyright 2022 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. #include "components/webapps/browser/install_result_code.h"
  5. #include "testing/gtest/include/gtest/gtest.h"
  6. namespace webapps {
  7. TEST(InstallResultCodeTest, IsSuccess) {
  8. // TODO(crbug.com/1296447): Test the rest of the constants.
  9. EXPECT_TRUE(IsSuccess(InstallResultCode::kSuccessNewInstall));
  10. EXPECT_TRUE(IsSuccess(InstallResultCode::kSuccessAlreadyInstalled));
  11. EXPECT_FALSE(IsSuccess(InstallResultCode::kExpectedAppIdCheckFailed));
  12. }
  13. } // namespace webapps