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