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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_COPRESENCE_TEST_STUB_WHISPERNET_CLIENT_H_
6 #define COMPONENTS_COPRESENCE_TEST_STUB_WHISPERNET_CLIENT_H_
7
8 #include "components/copresence/public/whispernet_client.h"
9
10 namespace copresence {
11
12 // An empty WhispernetClient for testing.
13 class StubWhispernetClient final : public WhispernetClient {
14 public:
15 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.
16
17 void Initialize(const SuccessCallback& /* init_callback */) override {}
18 void Shutdown() override {}
19 void EncodeToken(const std::string& /* token */, AudioType /* type */)
20 override {}
21 void DecodeSamples(AudioType /* type */, const std::string& /* samples */)
22 override {}
23 void DetectBroadcast() override {}
24 void RegisterTokensCallback(
25 const TokensCallback& /* tokens_callback */) override {}
26 void RegisterSamplesCallback(
27 const SamplesCallback& /* samples_callback */) override {}
28 void RegisterDetectBroadcastCallback(
29 const SuccessCallback& /* db_callback */) override {}
30 TokensCallback GetTokensCallback() override;
31 SamplesCallback GetSamplesCallback() override;
32 SuccessCallback GetDetectBroadcastCallback() override;
33 SuccessCallback GetInitializedCallback() override;
34 };
35
36 } // namespace copresence
37
38 #endif // COMPONENTS_COPRESENCE_TEST_STUB_WHISPERNET_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698