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

Unified Diff: components/copresence/rpc/rpc_handler_unittest.cc

Issue 461803003: Stop playing/recording when not needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/rpc/rpc_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/rpc/rpc_handler_unittest.cc
diff --git a/components/copresence/rpc/rpc_handler_unittest.cc b/components/copresence/rpc/rpc_handler_unittest.cc
index 61eb39c927b02b3abae873d7eeb14d2ce516192b..ced8e3c7bfe8a83bea46fbef9ae1dd6143a1d5e0 100644
--- a/components/copresence/rpc/rpc_handler_unittest.cc
+++ b/components/copresence/rpc/rpc_handler_unittest.cc
@@ -62,7 +62,7 @@ class FakeDirectiveHandler : public DirectiveHandler {
virtual void Initialize(
const AudioRecorder::DecodeSamplesCallback& decode_cb,
- const AudioDirectiveList::EncodeTokenCallback& encode_cb) OVERRIDE {}
+ const AudioDirectiveHandler::EncodeTokenCallback& encode_cb) OVERRIDE {}
virtual void AddDirective(const Directive& directive) OVERRIDE {
added_directives_.push_back(directive);
@@ -249,11 +249,15 @@ TEST_F(RpcHandlerTest, CreateRequestHeader) {
report->header().registered_device_id());
}
-TEST_F(RpcHandlerTest, ReportTokens) {
- std::vector<FullToken> test_tokens;
- test_tokens.push_back(FullToken("token 1", false));
- test_tokens.push_back(FullToken("token 2", true));
- test_tokens.push_back(FullToken("token 3", false));
+// TODO(ckehoe): Renable these after https://codereview.chromium.org/453203002/
+// lands.
+#define MAYBE_ReportTokens DISABLED_ReportTokens
+
+TEST_F(RpcHandlerTest, MAYBE_ReportTokens) {
+ std::vector<AudioToken> test_tokens;
+ test_tokens.push_back(AudioToken("token 1", false));
+ test_tokens.push_back(AudioToken("token 2", true));
+ test_tokens.push_back(AudioToken("token 3", false));
AddInvalidToken("token 2");
rpc_handler_.ReportTokens(test_tokens);
« no previous file with comments | « components/copresence/rpc/rpc_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698