12345678910111213141516171819202122232425262728293031 |
- // Copyright 2021 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.
- #ifndef ASH_QUICK_PAIR_COMMON_ACCOUNT_KEY_FAILURE_H_
- #define ASH_QUICK_PAIR_COMMON_ACCOUNT_KEY_FAILURE_H_
- #include <ostream>
- #include "base/component_export.h"
- namespace ash {
- namespace quick_pair {
- // These values are persisted to logs. Entries should not be renumbered and
- // numeric values should never be reused. This enum should be kept in sync with
- // the FastPairAccountKeyFailure enum in src/tools/metrics/histograms/enums.xml.
- enum class AccountKeyFailure {
- // Failed to find the Account Key GATT characteristic.
- kAccountKeyCharacteristicDiscovery = 0,
- // Failed to write to the Account Key GATT characteristic.
- kAccountKeyCharacteristicWrite = 1,
- kMaxValue = kAccountKeyCharacteristicWrite,
- };
- COMPONENT_EXPORT(QUICK_PAIR_COMMON)
- std::ostream& operator<<(std::ostream& stream, AccountKeyFailure protocol);
- } // namespace quick_pair
- } // namespace ash
- #endif // ASH_QUICK_PAIR_COMMON_ACCOUNT_KEY_FAILURE_H_
|