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

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

Issue 865483005: Creating the audio_modem component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging again Created 5 years, 10 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/copresence/test/stub_whispernet_client.h ('k') | components/copresence/tokens.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/test/stub_whispernet_client.cc
diff --git a/components/copresence/test/stub_whispernet_client.cc b/components/copresence/test/stub_whispernet_client.cc
deleted file mode 100644
index d0768a587b4dc4d9b340f2baaced0be63a719040..0000000000000000000000000000000000000000
--- a/components/copresence/test/stub_whispernet_client.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 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/copresence/test/stub_whispernet_client.h"
-
-namespace copresence {
-
-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) {
- if (!samples_cb_.is_null())
- samples_cb_.Run(type, token, samples_);
-}
-
-void StubWhispernetClient::DecodeSamples(AudioType type,
- const std::string& samples,
- const size_t token_length[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::GetDetectBroadcastCallback() {
- return SuccessCallback();
-}
-
-SuccessCallback StubWhispernetClient::GetInitializedCallback() {
- return SuccessCallback();
-}
-
-} // namespace copresence
« no previous file with comments | « components/copresence/test/stub_whispernet_client.h ('k') | components/copresence/tokens.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698