chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_unittest.cc
// Tests that we correctly register any extensions passed in when constructed.
Tests that we correctly register any extensions passed in when constructed.
Tests that we correctly register any extensions passed in when constructed .
TEST_F(PushMessagingInvalidationHandlerTest, Construction) {
  TearDown();
  InSequence seq;
  std::set<std::string> extension_ids;
  extension_ids.insert("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
  extension_ids.insert("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
  syncer::ObjectIdSet expected_ids;
  expected_ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0"));
  expected_ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/1"));
  expected_ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/2"));
  expected_ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/3"));
  expected_ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/0"));
  expected_ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/1"));
  expected_ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/2"));
  expected_ids.insert(invalidation::ObjectId(
      ipc::invalidation::ObjectSource::CHROME_PUSH_MESSAGING,
      "U/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/3"));
  SetUpWithArgs(extension_ids, expected_ids);
}
TEST_F ( PushMessagingInvalidationHandlerTest , Construction ) { TearDown ( ) ; InSequence seq ; std :: set < std :: string > extension_ids ; extension_ids . insert ( " " ) ; extension_ids . insert ( " " ) ; syncer :: ObjectIdSet expected_ids ; expected_ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; expected_ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; expected_ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; expected_ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; expected_ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; expected_ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; expected_ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; expected_ids . insert ( invalidation :: ObjectId ( ipc :: invalidation :: ObjectSource :: CHROME_PUSH_MESSAGING , " " ) ) ; SetUpWithArgs ( extension_ids , expected_ids ) ; }
Tests that we correctly register any extensions passed in when constructed.
Tests that we correctly register any extensions passed in when constructed .