| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "mojo/shell/test_package_manager.h" | 7 #include "mojo/shell/test_package_manager.h" |
| 8 | 8 |
| 9 namespace mojo { | 9 namespace mojo { |
| 10 namespace shell { | 10 namespace shell { |
| 11 namespace test { | 11 namespace test { |
| 12 | 12 |
| 13 TestPackageManager::TestPackageManager() {} | 13 TestPackageManager::TestPackageManager() {} |
| 14 TestPackageManager::~TestPackageManager() {} | 14 TestPackageManager::~TestPackageManager() {} |
| 15 | 15 |
| 16 void TestPackageManager::SetApplicationManager(ApplicationManager* manager) {} | 16 void TestPackageManager::SetApplicationManager(ApplicationManager* manager) {} |
| 17 void TestPackageManager::FetchRequest( | 17 void TestPackageManager::FetchRequest( |
| 18 URLRequestPtr request, | 18 URLRequestPtr request, |
| 19 const Fetcher::FetchCallback& loader_callback) {} | 19 const Fetcher::FetchCallback& loader_callback) {} |
| 20 uint32_t TestPackageManager::HandleWithContentHandler( | 20 uint32_t TestPackageManager::HandleWithContentHandler( |
| 21 Fetcher* fetcher, | 21 Fetcher* fetcher, |
| 22 const Identity& source, | 22 const Identity& source, |
| 23 const GURL& target_url, | 23 const GURL& target_url, |
| 24 const CapabilityFilter& target_filter, | 24 const CapabilityFilter& target_filter, |
| 25 InterfaceRequest<shell::mojom::Application>* application_request) { | 25 InterfaceRequest<shell::mojom::ShellClient>* request) { |
| 26 return 0; | 26 return 0; |
| 27 } | 27 } |
| 28 bool TestPackageManager::IsURLInCatalog(const std::string& url) const { | 28 bool TestPackageManager::IsURLInCatalog(const std::string& url) const { |
| 29 return true; | 29 return true; |
| 30 } | 30 } |
| 31 std::string TestPackageManager::GetApplicationName( | 31 std::string TestPackageManager::GetApplicationName( |
| 32 const std::string& url) const { return url; } | 32 const std::string& url) const { return url; } |
| 33 | 33 |
| 34 } // namespace test | 34 } // namespace test |
| 35 } // namespace shell | 35 } // namespace shell |
| 36 } // namespace mojo | 36 } // namespace mojo |
| OLD | NEW |