summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/app/app_apitest.cc
diff options
context:
space:
mode:
authorjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-23 19:55:29 +0000
committerjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-23 19:55:29 +0000
commit728a6607ba6e9fbd0b974cefd2f0a31d2d451de3 (patch)
tree88316615917fed9a95fbcc327443b874f030fe32 /chrome/browser/extensions/api/app/app_apitest.cc
parent2fc9aeacb4058ca342bdc9cac2c92ae9e4a71b96 (diff)
downloadchromium_src-728a6607ba6e9fbd0b974cefd2f0a31d2d451de3.zip
chromium_src-728a6607ba6e9fbd0b974cefd2f0a31d2d451de3.tar.gz
chromium_src-728a6607ba6e9fbd0b974cefd2f0a31d2d451de3.tar.bz2
Fix crash in AppNotifyChannelSetup when incognito profiles are used.
BUG=118258 TEST=see bug Review URL: http://codereview.chromium.org/9737001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128560 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/app/app_apitest.cc')
-rw-r--r--chrome/browser/extensions/api/app/app_apitest.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/extensions/api/app/app_apitest.cc b/chrome/browser/extensions/api/app/app_apitest.cc
new file mode 100644
index 0000000..6d5f07c
--- /dev/null
+++ b/chrome/browser/extensions/api/app/app_apitest.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/command_line.h"
+#include "chrome/browser/extensions/extension_apitest.h"
+#include "chrome/common/chrome_switches.h"
+
+class ExperimentalApiTest : public ExtensionApiTest {
+ public:
+ void SetUpCommandLine(CommandLine* command_line) {
+ ExtensionApiTest::SetUpCommandLine(command_line);
+ command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
+ }
+};
+
+IN_PROC_BROWSER_TEST_F(ExperimentalApiTest, AppNotificationIncognito) {
+ ASSERT_TRUE(RunExtensionSubtest(
+ "app_notifications", "test.html",
+ ExtensionApiTest::kFlagEnableIncognito |
+ ExtensionApiTest::kFlagUseIncognito)) << message_;
+}