OLD | NEW |
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/auto_reset.h" | 5 #include "base/auto_reset.h" |
6 #include "base/callback.h" | 6 #include "base/callback.h" |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/numerics/safe_conversions.h" | 10 #include "base/numerics/safe_conversions.h" |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 IN_PROC_BROWSER_TEST_F(MediaGalleriesPlatformAppPpapiTest, SendFilesystem) { | 468 IN_PROC_BROWSER_TEST_F(MediaGalleriesPlatformAppPpapiTest, SendFilesystem) { |
469 RemoveAllGalleries(); | 469 RemoveAllGalleries(); |
470 MakeSingleFakeGallery(NULL); | 470 MakeSingleFakeGallery(NULL); |
471 | 471 |
472 const extensions::Extension* extension = LoadExtension(app_dir()); | 472 const extensions::Extension* extension = LoadExtension(app_dir()); |
473 ASSERT_TRUE(extension); | 473 ASSERT_TRUE(extension); |
474 | 474 |
475 extensions::ResultCatcher catcher; | 475 extensions::ResultCatcher catcher; |
476 AppLaunchParams params(browser()->profile(), extension, | 476 AppLaunchParams params(browser()->profile(), extension, |
477 extensions::LAUNCH_CONTAINER_NONE, NEW_WINDOW, | 477 extensions::LAUNCH_CONTAINER_NONE, NEW_WINDOW, |
478 extensions::SOURCE_UNTRACKED); | 478 extensions::SOURCE_TEST); |
479 params.command_line = *CommandLine::ForCurrentProcess(); | 479 params.command_line = *CommandLine::ForCurrentProcess(); |
480 OpenApplication(params); | 480 OpenApplication(params); |
481 | 481 |
482 bool result = true; | 482 bool result = true; |
483 if (!catcher.GetNextResult()) { | 483 if (!catcher.GetNextResult()) { |
484 message_ = catcher.message(); | 484 message_ = catcher.message(); |
485 result = false; | 485 result = false; |
486 } | 486 } |
487 content::RunAllPendingInMessageLoop(); // avoid race on exit in registry. | 487 content::RunAllPendingInMessageLoop(); // avoid race on exit in registry. |
488 ASSERT_TRUE(result) << message_; | 488 ASSERT_TRUE(result) << message_; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 | 671 |
672 base::ListValue custom_args; | 672 base::ListValue custom_args; |
673 #if defined(USE_PROPRIETARY_CODECS) | 673 #if defined(USE_PROPRIETARY_CODECS) |
674 custom_args.AppendBoolean(true); | 674 custom_args.AppendBoolean(true); |
675 #else | 675 #else |
676 custom_args.AppendBoolean(false); | 676 custom_args.AppendBoolean(false); |
677 #endif | 677 #endif |
678 ASSERT_TRUE(RunMediaGalleriesTestWithArg("media_metadata", custom_args)) | 678 ASSERT_TRUE(RunMediaGalleriesTestWithArg("media_metadata", custom_args)) |
679 << message_; | 679 << message_; |
680 } | 680 } |
OLD | NEW |