chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_unittest.cc
// Tests that malformed object IDs don't trigger spurious callbacks.
Tests that malformed object IDs don't trigger spurious callbacks.
Tests that malformed object IDs don ' t trigger spurious callbacks .
TEST_F(PushMessagingInvalidationHandlerTest, DispatchInvalidObjectIds) {
  syncer::ObjectIdSet ids;
  ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::TEST,
      "Invalid"));
  ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::TEST,
      "U/dddddddddddddddddddddddddddddddd/3"));
  ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "V/dddddddddddddddddddddddddddddddd/3"));
  ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/ddddddddddddddddddddddddddddddddd/3"));
  ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/dddddddddddddddddddddddddddddddd/z"));
  ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/dddddddddddddddddddddddddddddddd/4"));
  handler_->OnIncomingInvalidation(ObjectIdSetToInvalidationMap(ids, "payload"),
                                   syncer::REMOTE_INVALIDATION);
}
TEST_F ( PushMessagingInvalidationHandlerTest , DispatchInvalidObjectIds ) { syncer :: ObjectIdSet ids ; ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: TEST , " " ) ) ; ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: TEST , " " ) ) ; ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; handler_ -> OnIncomingInvalidation ( ObjectIdSetToInvalidationMap ( ids , " " ) , syncer :: REMOTE_INVALIDATION ) ; }
Tests that malformed object IDs don't trigger spurious callbacks.
Tests that malformed object IDs don ' t trigger spurious callbacks .
// Completely incorrect format. // Incorrect source. // Incorrect format type. // Invalid extension ID length. // Non-numeric subchannel. // Subchannel out of range.