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

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

Issue 685983007: RpcHandlerTest cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
Index: components/copresence/test/stub_whispernet_client.h
diff --git a/components/copresence/test/stub_whispernet_client.h b/components/copresence/test/stub_whispernet_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..6975e76ba215e47f787670907135275db3a99659
--- /dev/null
+++ b/components/copresence/test/stub_whispernet_client.h
@@ -0,0 +1,38 @@
+// 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.
+
+#ifndef COMPONENTS_COPRESENCE_TEST_STUB_WHISPERNET_CLIENT_H_
+#define COMPONENTS_COPRESENCE_TEST_STUB_WHISPERNET_CLIENT_H_
+
+#include "components/copresence/public/whispernet_client.h"
+
+namespace copresence {
+
+// An empty WhispernetClient for testing.
+class StubWhispernetClient final : public WhispernetClient {
+ public:
+ StubWhispernetClient() {}
rkc 2014/11/04 19:35:27 override
Charlie 2014/11/04 19:57:04 Huh? You cannot override a constructor. And this c
rkc 2014/11/04 20:02:57 Oh nevermind, I can't read.
+
+ void Initialize(const SuccessCallback& /* init_callback */) override {}
+ void Shutdown() override {}
+ void EncodeToken(const std::string& /* token */, AudioType /* type */)
+ override {}
+ void DecodeSamples(AudioType /* type */, const std::string& /* samples */)
+ override {}
+ void DetectBroadcast() override {}
+ void RegisterTokensCallback(
+ const TokensCallback& /* tokens_callback */) override {}
+ void RegisterSamplesCallback(
+ const SamplesCallback& /* samples_callback */) override {}
+ void RegisterDetectBroadcastCallback(
+ const SuccessCallback& /* db_callback */) override {}
+ TokensCallback GetTokensCallback() override;
+ SamplesCallback GetSamplesCallback() override;
+ SuccessCallback GetDetectBroadcastCallback() override;
+ SuccessCallback GetInitializedCallback() override;
+};
+
+} // namespace copresence
+
+#endif // COMPONENTS_COPRESENCE_TEST_STUB_WHISPERNET_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698