Index: chrome/browser/extensions/api/gcm/gcm_apitest.cc |
diff --git a/chrome/browser/extensions/api/gcm/gcm_apitest.cc b/chrome/browser/extensions/api/gcm/gcm_apitest.cc |
index 2348792f115cdf298a3e63c97b1ea157566113fb..cda16f74c91d2fc5a3e0c9a7c94c95f77ef7aff8 100644 |
--- a/chrome/browser/extensions/api/gcm/gcm_apitest.cc |
+++ b/chrome/browser/extensions/api/gcm/gcm_apitest.cc |
@@ -31,7 +31,6 @@ class GcmApiTest : public ExtensionApiTest { |
const Extension* LoadTestExtension(const std::string& extension_path, |
const std::string& page_name); |
- |
gcm::FakeGCMProfileService* service() const; |
private: |
@@ -167,4 +166,16 @@ IN_PROC_BROWSER_TEST_F(GcmApiTest, OnSendError) { |
EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
} |
+IN_PROC_BROWSER_TEST_F(GcmApiTest, Incognito) { |
+ ResultCatcher catcher; |
+ catcher.RestrictToProfile(profile()); |
+ ResultCatcher incognito_catcher; |
+ incognito_catcher.RestrictToProfile(profile()->GetOffTheRecordProfile()); |
+ |
+ ASSERT_TRUE(RunExtensionTestIncognito("gcm/functions/incognito")); |
+ |
+ EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
+ EXPECT_TRUE(incognito_catcher.GetNextResult()) << incognito_catcher.message(); |
+} |
+ |
} // namespace extensions |