Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: components/audio_modem/test/stub_whispernet_client.cc

Issue 2131993002: Delete the audio modem and copresence private APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eol
Patch Set: Sync again Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/audio_modem/test/stub_whispernet_client.h ('k') | components/components.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/test/stub_whispernet_client.cc
diff --git a/components/audio_modem/test/stub_whispernet_client.cc b/components/audio_modem/test/stub_whispernet_client.cc
deleted file mode 100644
index e2763ce9307bfe31c9214fdb553a233fde7e6441..0000000000000000000000000000000000000000
--- a/components/audio_modem/test/stub_whispernet_client.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2015 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/audio_modem/test/stub_whispernet_client.h"
-
-namespace audio_modem {
-
-StubWhispernetClient::StubWhispernetClient(
- scoped_refptr<media::AudioBusRefCounted> samples,
- const std::vector<AudioToken>& tokens)
- : samples_(samples),
- tokens_(tokens) {
-}
-
-StubWhispernetClient::~StubWhispernetClient() {}
-
-void StubWhispernetClient::Initialize(const SuccessCallback& init_callback) {}
-
-void StubWhispernetClient::EncodeToken(const std::string& token,
- AudioType type,
- const TokenParameters token_params[2]) {
- if (!samples_cb_.is_null())
- samples_cb_.Run(type, token, samples_);
-}
-
-void StubWhispernetClient::DecodeSamples(
- AudioType type,
- const std::string& samples,
- const TokenParameters token_params[2]) {
- if (!tokens_cb_.is_null())
- tokens_cb_.Run(tokens_);
-}
-
-void StubWhispernetClient::RegisterTokensCallback(
- const TokensCallback& tokens_cb) {
- tokens_cb_ = tokens_cb;
-}
-
-void StubWhispernetClient::RegisterSamplesCallback(
- const SamplesCallback& samples_cb) {
- samples_cb_ = samples_cb;
-}
-
-TokensCallback StubWhispernetClient::GetTokensCallback() {
- return tokens_cb_;
-}
-
-SamplesCallback StubWhispernetClient::GetSamplesCallback() {
- return samples_cb_;
-}
-
-SuccessCallback StubWhispernetClient::GetInitializedCallback() {
- return SuccessCallback();
-}
-
-} // namespace audio_modem
« no previous file with comments | « components/audio_modem/test/stub_whispernet_client.h ('k') | components/components.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698