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

Unified Diff: components/copresence/handlers/gcm_handler_unittest.cc

Issue 813553002: Adding support for pre-sent messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@state
Patch Set: Created 5 years, 11 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/handlers/gcm_handler_impl.cc ('k') | components/copresence/proto/data.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/handlers/gcm_handler_unittest.cc
diff --git a/components/copresence/handlers/gcm_handler_unittest.cc b/components/copresence/handlers/gcm_handler_unittest.cc
index 1d901e98cf6c470e30f50d0ebf91ff70fc6e089e..eec6c77e1dca4a5af9cf7d968881cc5e8a4981e3 100644
--- a/components/copresence/handlers/gcm_handler_unittest.cc
+++ b/components/copresence/handlers/gcm_handler_unittest.cc
@@ -14,6 +14,8 @@
using gcm::GCMClient;
+namespace copresence {
+
namespace {
// TODO(ckehoe): Move this to a central place.
@@ -23,17 +25,21 @@ std::string ToUrlSafe(std::string token) {
return token;
}
-} // namespace
+using google::protobuf::RepeatedPtrField;
+void IgnoreMessages(
+ const RepeatedPtrField<SubscribedMessage>& /* messages */) {}
+} // namespace
-namespace copresence {
class GCMHandlerTest : public testing::Test {
public:
GCMHandlerTest()
: driver_(new gcm::FakeGCMDriver),
directive_handler_(new FakeDirectiveHandler),
- gcm_handler_(driver_.get(), directive_handler_.get()) {
+ gcm_handler_(driver_.get(),
+ directive_handler_.get(),
+ base::Bind(&IgnoreMessages)) {
}
protected:
« no previous file with comments | « components/copresence/handlers/gcm_handler_impl.cc ('k') | components/copresence/proto/data.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698