quick_pair_process_manager.cc 820 B

123456789101112131415161718192021222324252627
  1. // Copyright 2021 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 "ash/services/quick_pair/quick_pair_process_manager.h"
  5. #include <ostream>
  6. namespace ash {
  7. namespace quick_pair {
  8. std::ostream& operator<<(
  9. std::ostream& os,
  10. const QuickPairProcessManager::ShutdownReason& reason) {
  11. switch (reason) {
  12. case QuickPairProcessManager::ShutdownReason::kNormal:
  13. return os << "[Normal]";
  14. case QuickPairProcessManager::ShutdownReason::kCrash:
  15. return os << "[Crash]";
  16. case QuickPairProcessManager::ShutdownReason::
  17. kFastPairDataParserMojoPipeDisconnection:
  18. return os << "[FastPairDataParser Mojo Pipe Disconnection]";
  19. }
  20. }
  21. } // namespace quick_pair
  22. } // namespace ash