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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/extensions/api/_permission_features.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/stubs_apitest.cc
diff --git a/chrome/browser/extensions/stubs_apitest.cc b/chrome/browser/extensions/stubs_apitest.cc
index 24c4d89fa0e30217d2af93161efb355e9922d7a9..03f920177c678465405b69fcdb186ba32554edf3 100644
--- a/chrome/browser/extensions/stubs_apitest.cc
+++ b/chrome/browser/extensions/stubs_apitest.cc
@@ -29,3 +29,12 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_Stubs) {
ResultCatcher catcher;
ASSERT_TRUE(catcher.GetNextResult());
}
+
+// Tests that all API features that are available to a platform app actually
+// can be used in an app. For example, this test will fail if a developer adds
+// an API feature without providing a schema. http://crbug.com/369318
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, StubsApp) {
+ ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
+
+ ASSERT_TRUE(RunPlatformAppTest("stubs_app")) << message_;
+}
« 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