Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1037)

Side by Side Diff: chrome/browser/extensions/platform_app_browsertest.cc

Issue 9192021: Disallow WebSQL and localStorage in platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/stringprintf.h" 6 #include "base/stringprintf.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/extensions/extension_apitest.h" 8 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "chrome/browser/extensions/extension_browsertest.h" 9 #include "chrome/browser/extensions/extension_browsertest.h"
10 #include "chrome/browser/extensions/extension_host.h" 10 #include "chrome/browser/extensions/extension_host.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 // Disabled until shell windows are implemented for non-GTK, non-Views toolkits. 204 // Disabled until shell windows are implemented for non-GTK, non-Views toolkits.
205 #if defined(TOOLKIT_GTK) || defined(TOOLKIT_VIEWS) 205 #if defined(TOOLKIT_GTK) || defined(TOOLKIT_VIEWS)
206 #define MAYBE_DisallowModalDialogs DisallowModalDialogs 206 #define MAYBE_DisallowModalDialogs DisallowModalDialogs
207 #else 207 #else
208 #define MAYBE_DisallowModalDialogs DISABLED_DisallowModalDialogs 208 #define MAYBE_DisallowModalDialogs DISABLED_DisallowModalDialogs
209 #endif 209 #endif
210 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_DisallowModalDialogs) { 210 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_DisallowModalDialogs) {
211 ASSERT_TRUE(RunPlatformAppTest("platform_apps/modal_dialogs")) << message_; 211 ASSERT_TRUE(RunPlatformAppTest("platform_apps/modal_dialogs")) << message_;
212 } 212 }
213
214 // Tests that localStorage and WebSQL are disabled for platform apps.
215 // Disabled until shell windows are implemented for non-GTK, non-Views toolkits.
216 #if defined(TOOLKIT_GTK) || defined(TOOLKIT_VIEWS)
217 #define MAYBE_DisallowStorage DisallowStorage
218 #else
219 #define MAYBE_DisallowStorage DISABLED_DisallowStorage
220 #endif
221 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_DisallowStorage) {
222 ASSERT_TRUE(RunPlatformAppTest("platform_apps/storage")) << message_;
223 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_webkit_preferences.cc ('k') | chrome/test/data/extensions/platform_apps/storage/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698