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

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

Issue 10659021: Move chrome.appWindow to chrome.app.window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 5 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 "chrome/app/chrome_command_ids.h" 5 #include "chrome/app/chrome_command_ids.h"
6 #include "chrome/browser/automation/automation_util.h" 6 #include "chrome/browser/automation/automation_util.h"
7 #include "chrome/browser/tab_contents/render_view_context_menu.h" 7 #include "chrome/browser/tab_contents/render_view_context_menu.h"
8 #include "chrome/browser/extensions/extension_test_message_listener.h" 8 #include "chrome/browser/extensions/extension_test_message_listener.h"
9 #include "chrome/browser/extensions/platform_app_browsertest_util.h" 9 #include "chrome/browser/extensions/platform_app_browsertest_util.h"
10 #include "chrome/browser/extensions/shell_window_registry.h" 10 #include "chrome/browser/extensions/shell_window_registry.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // Tests that localStorage and WebSQL are disabled for platform apps. 116 // Tests that localStorage and WebSQL are disabled for platform apps.
117 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowStorage) { 117 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowStorage) {
118 ASSERT_TRUE(RunPlatformAppTest("platform_apps/storage")) << message_; 118 ASSERT_TRUE(RunPlatformAppTest("platform_apps/storage")) << message_;
119 } 119 }
120 120
121 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, Restrictions) { 121 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, Restrictions) {
122 ASSERT_TRUE(RunPlatformAppTest("platform_apps/restrictions")) << message_; 122 ASSERT_TRUE(RunPlatformAppTest("platform_apps/restrictions")) << message_;
123 } 123 }
124 124
125 // Tests that platform apps can use the chrome.appWindow.* API. 125 // Tests that platform apps can use the chrome.app.window.* API.
126 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApi) { 126 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApi) {
127 ASSERT_TRUE(RunPlatformAppTest("platform_apps/windows_api")) << message_; 127 ASSERT_TRUE(RunPlatformAppTest("platform_apps/windows_api")) << message_;
128 } 128 }
129 129
130 // Tests that platform apps have isolated storage by default. 130 // Tests that platform apps have isolated storage by default.
131 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, Isolation) { 131 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, Isolation) {
132 ASSERT_TRUE(StartTestServer()); 132 ASSERT_TRUE(StartTestServer());
133 133
134 // Load a (non-app) page under the "localhost" origin that sets a cookie. 134 // Load a (non-app) page under the "localhost" origin that sets a cookie.
135 GURL set_cookie_url = test_server()->GetURL( 135 GURL set_cookie_url = test_server()->GetURL(
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 ASSERT_TRUE(source->GetWebContents()->GetRenderProcessHost()->IsGuest()); 364 ASSERT_TRUE(source->GetWebContents()->GetRenderProcessHost()->IsGuest());
365 365
366 // Now, test the browser tag to ensure we have properly set the cookie and 366 // Now, test the browser tag to ensure we have properly set the cookie and
367 // we have only one. 367 // we have only one.
368 automation_util::GetCookies(GURL("http://localhost"), 368 automation_util::GetCookies(GURL("http://localhost"),
369 source->GetWebContents(), 369 source->GetWebContents(),
370 &cookie_size, &cookie_value); 370 &cookie_size, &cookie_value);
371 ASSERT_EQ("isolation_guest=true", cookie_value); 371 ASSERT_EQ("isolation_guest=true", cookie_value);
372 } 372 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/app_window/app_window_api.h ('k') | chrome/common/extensions/api/_permission_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698