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 |