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

Side by Side Diff: chrome/browser/chromeos/extensions/external_filesystem_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app_window/app_window_apitest.cc » ('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) 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/json/json_file_value_serializer.h" 9 #include "base/json/json_file_value_serializer.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 test_data_dir_.AppendASCII("filebrowser_component")); 337 test_data_dir_.AppendASCII("filebrowser_component"));
338 ASSERT_TRUE(extension) << message_; 338 ASSERT_TRUE(extension) << message_;
339 std::string path = "filesystem:chrome-extension://" + extension->id() + 339 std::string path = "filesystem:chrome-extension://" + extension->id() +
340 "/external" + test_file.value(); 340 "/external" + test_file.value();
341 GURL url = extension->GetResourceURL("intent.html#" + path); 341 GURL url = extension->GetResourceURL("intent.html#" + path);
342 ui_test_utils::NavigateToURL(browser(), url); 342 ui_test_utils::NavigateToURL(browser(), url);
343 343
344 // The webintent_handler sends chrome.test.succeed() on successful receipt 344 // The webintent_handler sends chrome.test.succeed() on successful receipt
345 // of the incoming Web Intent. 345 // of the incoming Web Intent.
346 ASSERT_TRUE(catcher.GetNextResult()) << message_; 346 ASSERT_TRUE(catcher.GetNextResult()) << message_;
347 CloseShellWindowsAndWaitForAppToExit();
347 } 348 }
348 349
349 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserTestWrite) { 350 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, FileBrowserTestWrite) {
350 AddTmpMountPoint(); 351 AddTmpMountPoint();
351 ASSERT_TRUE(RunExtensionTest("filesystem_handler_write")) << message_; 352 ASSERT_TRUE(RunExtensionTest("filesystem_handler_write")) << message_;
352 ASSERT_TRUE(RunExtensionSubtest( 353 ASSERT_TRUE(RunExtensionSubtest(
353 "filebrowser_component", "write.html", kComponentFlags)) << message_; 354 "filebrowser_component", "write.html", kComponentFlags)) << message_;
354 } 355 }
355 356
356 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest, 357 IN_PROC_BROWSER_TEST_F(FileSystemExtensionApiTest,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 _, _)) 474 _, _))
474 .WillOnce(MockDownloadFileCallback(google_apis::HTTP_SUCCESS)); 475 .WillOnce(MockDownloadFileCallback(google_apis::HTTP_SUCCESS));
475 476
476 // On exit, all operations in progress should be cancelled. 477 // On exit, all operations in progress should be cancelled.
477 EXPECT_CALL(*mock_drive_service_, CancelAll()); 478 EXPECT_CALL(*mock_drive_service_, CancelAll());
478 479
479 // All is set... RUN THE TEST. 480 // All is set... RUN THE TEST.
480 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote_search.html", 481 EXPECT_TRUE(RunExtensionSubtest("filebrowser_component", "remote_search.html",
481 kComponentFlags)) << message_; 482 kComponentFlags)) << message_;
482 } 483 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app_window/app_window_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698