| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_LEGACY_TASK_MANAGER_TESTER_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_FACTORY_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_LEGACY_TASK_MANAGER_TESTER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "services/shell/public/cpp/shell_client.h" | 11 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" |
| 12 | 12 |
| 13 namespace media { | 13 namespace task_manager { |
| 14 | 14 |
| 15 // Creates a MojoMediaApplication instance using the default MojoMediaClient. | 15 // Create a LegacyTaskManagerTester for the old (deprecated, mac-only) task |
| 16 std::unique_ptr<shell::ShellClient> CreateMojoMediaApplication( | 16 // manager. If you're writing a test, don't use this directly since it won't |
| 17 const base::Closure& quit_closure); | 17 // work on other platforms. Use TaskManagerTester::Create() instead. |
| 18 std::unique_ptr<browsertest_util::TaskManagerTester> |
| 19 CreateLegacyTaskManagerTester(const base::Closure& callback); |
| 18 | 20 |
| 19 } // namespace media | 21 } // namespace task_manager |
| 20 | 22 |
| 21 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_FACTORY_H_ | 23 #endif // CHROME_BROWSER_TASK_MANAGER_LEGACY_TASK_MANAGER_TESTER_H_ |
| OLD | NEW |