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

Unified Diff: components/audio_modem/test/stub_modem.h

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/random_samples.cc ('k') | components/audio_modem/test/stub_modem.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/test/stub_modem.h
diff --git a/components/audio_modem/test/stub_modem.h b/components/audio_modem/test/stub_modem.h
deleted file mode 100644
index 63f7f0003f564db6a297174e7f7a778f23ce0b0c..0000000000000000000000000000000000000000
--- a/components/audio_modem/test/stub_modem.h
+++ /dev/null
@@ -1,52 +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.
-
-#ifndef COMPONENTS_AUDIO_MODEM_TEST_STUB_MODEM_H_
-#define COMPONENTS_AUDIO_MODEM_TEST_STUB_MODEM_H_
-
-#include <string>
-#include <vector>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "components/audio_modem/public/modem.h"
-
-namespace audio_modem {
-
-class StubModem final : public Modem {
- public:
- StubModem();
- ~StubModem() override;
-
- // AudioManager overrides:
- void Initialize(WhispernetClient* whispernet_client,
- const TokensCallback& tokens_cb) override;
- void StartPlaying(AudioType type) override;
- void StopPlaying(AudioType type) override;
- void StartRecording(AudioType type) override;
- void StopRecording(AudioType type) override;
- void SetToken(AudioType type, const std::string& url_unsafe_token) override {}
- const std::string GetToken(AudioType type) const override;
- bool IsPlayingTokenHeard(AudioType type) const override;
- void SetTokenParams(AudioType type, const TokenParameters& params) override {}
-
- bool IsRecording(AudioType type) const;
- bool IsPlaying(AudioType type) const;
-
- // Encodes tokens as base64 and then delivers them.
- void DeliverTokens(const std::vector<AudioToken>& tokens);
-
- private:
- // Indexed using enum AudioType.
- bool playing_[2];
- bool recording_[2];
-
- TokensCallback tokens_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(StubModem);
-};
-
-} // namespace audio_modem
-
-#endif // COMPONENTS_AUDIO_MODEM_TEST_STUB_MODEM_H_
« no previous file with comments | « components/audio_modem/test/random_samples.cc ('k') | components/audio_modem/test/stub_modem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698