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

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

Issue 806853003: Revert of Revert of Adding CopresenceState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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') | components/copresence/tokens.h » ('j') | 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 62fd56a9f9cba5ada50c540de91e2828870272e9..3f6ba349457887b2155bfa72333b10f35b5c00b7 100644
--- a/components/copresence/rpc/rpc_handler_unittest.cc
+++ b/components/copresence/rpc/rpc_handler_unittest.cc
@@ -12,6 +12,7 @@
#include "base/bind_helpers.h"
#include "base/memory/scoped_vector.h"
#include "base/message_loop/message_loop.h"
+#include "components/copresence/copresence_state_impl.h"
#include "components/copresence/handlers/directive_handler.h"
#include "components/copresence/mediums/audio/audio_manager.h"
#include "components/copresence/proto/data.pb.h"
@@ -50,7 +51,11 @@
public:
RpcHandlerTest()
: whispernet_client_(new StubWhispernetClient),
+ // TODO(ckehoe): Use a FakeCopresenceState here
+ // and test that it gets called correctly.
+ state_(new CopresenceStateImpl),
rpc_handler_(this,
+ state_.get(),
&directive_handler_,
nullptr,
base::Bind(&RpcHandlerTest::CaptureHttpPost,
@@ -154,6 +159,7 @@
scoped_ptr<WhispernetClient> whispernet_client_;
FakeDirectiveHandler directive_handler_;
+ scoped_ptr<CopresenceStateImpl> state_;
RpcHandler rpc_handler_;
CopresenceStatus status_;
« no previous file with comments | « components/copresence/rpc/rpc_handler.cc ('k') | components/copresence/tokens.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698