OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
7 #include "chrome/test/base/ui_test_utils.h" | 7 #include "chrome/test/base/ui_test_utils.h" |
8 | 8 |
9 namespace extensions { | 9 namespace extensions { |
10 | 10 |
11 // Times out on win asan, http://crbug.com/166026 | 11 // Times out on win syzyasan, http://crbug.com/166026 |
12 #if defined(OS_WIN) && defined(ADDRESS_SANITIZER) | 12 #if defined(SYZYASAN) |
13 #define MAYBE_Cookies DISABLED_Cookies | 13 #define MAYBE_Cookies DISABLED_Cookies |
14 #else | 14 #else |
15 #define MAYBE_Cookies Cookies | 15 #define MAYBE_Cookies Cookies |
16 #endif | 16 #endif |
17 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_Cookies) { | 17 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_Cookies) { |
18 ASSERT_TRUE(RunExtensionTest("cookies/api")) << message_; | 18 ASSERT_TRUE(RunExtensionTest("cookies/api")) << message_; |
19 } | 19 } |
20 | 20 |
21 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CookiesEvents) { | 21 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CookiesEvents) { |
22 ASSERT_TRUE(RunExtensionTest("cookies/events")) << message_; | 22 ASSERT_TRUE(RunExtensionTest("cookies/events")) << message_; |
23 } | 23 } |
24 | 24 |
25 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CookiesEventsSpanning) { | 25 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CookiesEventsSpanning) { |
26 // We need to initialize an incognito mode window in order have an initialized | 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 | 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 | 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. | 29 // to test whether the storeId is set correctly. |
30 ui_test_utils::OpenURLOffTheRecord(browser()->profile(), | 30 ui_test_utils::OpenURLOffTheRecord(browser()->profile(), |
31 GURL("chrome://newtab/")); | 31 GURL("chrome://newtab/")); |
32 ASSERT_TRUE(RunExtensionTestIncognito("cookies/events_spanning")) << message_; | 32 ASSERT_TRUE(RunExtensionTestIncognito("cookies/events_spanning")) << message_; |
33 } | 33 } |
34 | 34 |
35 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CookiesNoPermission) { | 35 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CookiesNoPermission) { |
36 ASSERT_TRUE(RunExtensionTest("cookies/no_permission")) << message_; | 36 ASSERT_TRUE(RunExtensionTest("cookies/no_permission")) << message_; |
37 } | 37 } |
38 | 38 |
39 } // namespace extensions | 39 } // namespace extensions |
OLD | NEW |