testing_api_binder.cc 532 B

123456789101112131415161718192021
  1. // Copyright 2019 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 "services/audio/testing_api_binder.h"
  5. #include "base/no_destructor.h"
  6. namespace audio {
  7. TestingApiBinder& GetTestingApiBinder() {
  8. static base::NoDestructor<TestingApiBinder> binder;
  9. return *binder;
  10. }
  11. SystemInfoBinder& GetSystemInfoBinderForTesting() {
  12. static base::NoDestructor<SystemInfoBinder> binder;
  13. return *binder;
  14. }
  15. } // namespace audio