summaryrefslogtreecommitdiff
path: root/chromium/services/audio/testing_api_binder.cc
blob: 01fdaeea6d49d0f5a9bd556935eb4e13511559a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2019 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 "services/audio/testing_api_binder.h"

#include "base/no_destructor.h"

namespace audio {

TestingApiBinder& GetTestingApiBinder() {
  static base::NoDestructor<TestingApiBinder> binder;
  return *binder;
}

SystemInfoBinder& GetSystemInfoBinderForTesting() {
  static base::NoDestructor<SystemInfoBinder> binder;
  return *binder;
}

}  // namespace audio