1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/command_line.h"
6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/test/base/ui_test_utils.h"
11 // Times out on win syzyasan, http://crbug.com/166026
13 #define MAYBE_Cookies DISABLED_Cookies
15 #define MAYBE_Cookies Cookies
17 IN_PROC_BROWSER_TEST_F(ExtensionApiTest
, MAYBE_Cookies
) {
18 ASSERT_TRUE(RunExtensionTest("cookies/api")) << message_
;
21 IN_PROC_BROWSER_TEST_F(ExtensionApiTest
, CookiesEvents
) {
22 ASSERT_TRUE(RunExtensionTest("cookies/events")) << message_
;
25 IN_PROC_BROWSER_TEST_F(ExtensionApiTest
, CookiesEventsSpanning
) {
26 // We need to initialize an incognito mode window in order have an initialized
27 // incognito cookie store. Otherwise, the chrome.cookies.set operation is just
28 // ignored and we won't be notified about a newly set cookie for which we want
29 // to test whether the storeId is set correctly.
30 OpenURLOffTheRecord(browser()->profile(), GURL("chrome://newtab/"));
31 ASSERT_TRUE(RunExtensionTestIncognito("cookies/events_spanning")) << message_
;
34 IN_PROC_BROWSER_TEST_F(ExtensionApiTest
, CookiesNoPermission
) {
35 ASSERT_TRUE(RunExtensionTest("cookies/no_permission")) << message_
;
38 } // namespace extensions