| Index: chrome/browser/services/gcm/gcm_profile_service_unittest.cc
|
| diff --git a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
|
| index cd01c4a4cbb0fe98becc84dac1cd1612be9d1362..8ad9bb539a83cd95241f2c27cc86cafd9e0560d0 100644
|
| --- a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
|
| +++ b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
|
| @@ -297,6 +297,20 @@ void GCMEventRouterMock::OnSendError(const std::string& app_id,
|
| test_->SignalCompleted();
|
| }
|
|
|
| +TEST_F(GCMProfileServiceTest, Incognito) {
|
| + EXPECT_TRUE(GCMProfileServiceFactory::GetForProfile(profile()));
|
| +
|
| + // Create an incognito profile.
|
| + TestingProfile::Builder incognito_profile_builder;
|
| + incognito_profile_builder.SetIncognito();
|
| + scoped_ptr<TestingProfile> incognito_profile =
|
| + incognito_profile_builder.Build();
|
| + incognito_profile->SetOriginalProfile(profile());
|
| +
|
| + EXPECT_FALSE(GCMProfileServiceFactory::GetForProfile(
|
| + incognito_profile.get()));
|
| +}
|
| +
|
| TEST_F(GCMProfileServiceTest, CheckIn) {
|
| EXPECT_TRUE(checkin_info_.IsValid());
|
|
|
|
|