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

Unified Diff: chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc

Issue 11117011: Keep browser process alive while there are platform apps with background pages running. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And another test Created 8 years 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
Index: chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc
diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc
index d1a5e64bc2be8d09033920baf4d7c2f7ff6be9ad..3316e9dbbd3ac75e536d30a1da9d1ed53ad5f41f 100644
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc
@@ -57,17 +57,19 @@ IN_PROC_BROWSER_TEST_F(PlatformAppMediaGalleriesBrowserTest, NoGalleries) {
IN_PROC_BROWSER_TEST_F(PlatformAppMediaGalleriesBrowserTest,
MediaGalleriesRead) {
chrome::EnsureMediaDirectoriesExists media_directories;
- ASSERT_TRUE(RunPlatformAppTest("api_test/media_galleries/read_access"))
- << message_;
+ ASSERT_TRUE(RunPlatformAppTestReturnImmediately(
+ "api_test/media_galleries/read_access")) << message_;
RunSecondTestPhase(media_directories.num_galleries());
+ CloseShellWindowsAndWaitForAppToExit();
}
IN_PROC_BROWSER_TEST_F(PlatformAppMediaGalleriesBrowserTest,
MediaGalleriesNoAccess) {
chrome::EnsureMediaDirectoriesExists media_directories;
- ASSERT_TRUE(RunPlatformAppTest("api_test/media_galleries/no_access"))
- << message_;
+ ASSERT_TRUE(RunPlatformAppTestReturnImmediately(
+ "api_test/media_galleries/no_access")) << message_;
RunSecondTestPhase(media_directories.num_galleries());
+ CloseShellWindowsAndWaitForAppToExit();
}
IN_PROC_BROWSER_TEST_F(ExperimentalMediaGalleriesApiTest,

Powered by Google App Engine
This is Rietveld 408576698