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

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

Issue 264923009: Add browser_test for extension app API with missing schema (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, automation permission Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/common/extensions/api/_permission_features.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "chrome/common/chrome_paths.h" 6 #include "chrome/common/chrome_paths.h"
7 #include "chrome/test/base/ui_test_utils.h" 7 #include "chrome/test/base/ui_test_utils.h"
8 #include "net/test/embedded_test_server/embedded_test_server.h" 8 #include "net/test/embedded_test_server/embedded_test_server.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
(...skipping 11 matching lines...) Expand all
22 ASSERT_TRUE(RunExtensionTest("stubs")) << message_; 22 ASSERT_TRUE(RunExtensionTest("stubs")) << message_;
23 23
24 // Navigate to a simple http:// page, which should get the content script 24 // Navigate to a simple http:// page, which should get the content script
25 // injected and run the rest of the test. 25 // injected and run the rest of the test.
26 GURL url(embedded_test_server()->GetURL("/extensions/test_file.html")); 26 GURL url(embedded_test_server()->GetURL("/extensions/test_file.html"));
27 ui_test_utils::NavigateToURL(browser(), url); 27 ui_test_utils::NavigateToURL(browser(), url);
28 28
29 ResultCatcher catcher; 29 ResultCatcher catcher;
30 ASSERT_TRUE(catcher.GetNextResult()); 30 ASSERT_TRUE(catcher.GetNextResult());
31 } 31 }
32
33 // Tests that all API features that are available to a platform app actually
34 // can be used in an app. For example, this test will fail if a developer adds
35 // an API feature without providing a schema. http://crbug.com/369318
36 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, StubsApp) {
37 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
38
39 ASSERT_TRUE(RunPlatformAppTest("stubs_app")) << message_;
40 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/api/_permission_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698