blob: f48cd73bd8440982c71e8e05e47e2d0a97885d48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MOJO_SHELL_TEST_PACKAGE_MANAGER_H_
#define MOJO_SHELL_TEST_PACKAGE_MANAGER_H_
#include <stdint.h>
#include "base/macros.h"
#include "mojo/shell/package_manager.h"
namespace mojo {
namespace shell {
namespace test {
class TestPackageManager : public PackageManager {
public:
TestPackageManager();
~TestPackageManager() override;
private:
// Overridden from PackageManager:
void SetApplicationManager(ApplicationManager* manager) override;
void FetchRequest(
URLRequestPtr request,
const Fetcher::FetchCallback& loader_callback) override;
uint32_t HandleWithContentHandler(
Fetcher* fetcher,
const Identity& source,
const GURL& target_url,
const CapabilityFilter& target_filter,
InterfaceRequest<Application>* application_request) override;
DISALLOW_COPY_AND_ASSIGN(TestPackageManager);
};
} // namespace test
} // namespace shell
} // namespace mojo
#endif // MOJO_SHELL_TEST_PACKAGE_MANAGER_H_
|