Index: chrome/browser/extensions/api/runtime/runtime_apitest.cc |
diff --git a/chrome/browser/extensions/api/runtime/runtime_apitest.cc b/chrome/browser/extensions/api/runtime/runtime_apitest.cc |
index 1d47cf004239240a87e72594f37fcbbef2318044..55f0d2a10521901b4f099343373465df09b51554 100644 |
--- a/chrome/browser/extensions/api/runtime/runtime_apitest.cc |
+++ b/chrome/browser/extensions/api/runtime/runtime_apitest.cc |
@@ -49,4 +49,18 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeRuntimeGetPlatformInfo) { |
EXPECT_TRUE(dict->HasKey("nacl_arch")); |
} |
+// Tests chrome.runtime.getPackageDirectory with an app. |
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, |
+ ChromeRuntimeGetPackageDirectoryEntryApp) { |
+ ASSERT_TRUE(RunPlatformAppTest("runtime/get_package_directory/app")) |
+ << message_; |
+} |
+ |
+// Tests chrome.runtime.getPackageDirectory with an extension. |
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, |
+ ChromeRuntimeGetPackageDirectoryEntryExtension) { |
+ ASSERT_TRUE(RunExtensionTest("runtime/get_package_directory/extension")) |
+ << message_; |
+} |
+ |
} // namespace extensions |