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

Side by Side Diff: services/fake_surfaces/fake_surfaces_service_application.h

Issue 804693002: Add fake implementation of Surfaces service for sky tests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FAKE_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
6 #define FAKE_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
7
8 #include "base/macros.h"
9 #include "mojo/public/cpp/application/application_delegate.h"
10 #include "mojo/public/cpp/application/interface_factory.h"
11 #include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h"
12
13 namespace mojo {
14 class ApplicationConnection;
15 }
16
17 namespace fake_surfaces {
18
19 class FakeSurfacesServiceApplication
20 : public mojo::ApplicationDelegate,
21 public mojo::InterfaceFactory<mojo::SurfacesService> {
22 public:
23 FakeSurfacesServiceApplication();
24 ~FakeSurfacesServiceApplication() override;
25
26 // ApplicationDelegate implementation.
27 void Initialize(mojo::ApplicationImpl* app) override;
28 bool ConfigureIncomingConnection(
29 mojo::ApplicationConnection* connection) override;
30
31 // InterfaceFactory<SurfacsService> implementation.
32 void Create(mojo::ApplicationConnection* connection,
33 mojo::InterfaceRequest<mojo::SurfacesService> request) override;
34
35 private:
36 uint32_t next_id_namespace_;
37
38 DISALLOW_COPY_AND_ASSIGN(FakeSurfacesServiceApplication);
39 };
40
41 } // namespace fake_surfaces
42
43 #endif // FAKE_SERVICES_SURFACES_SURFACES_SERVICE_APPLICATION_H_
OLDNEW
« no previous file with comments | « services/fake_surfaces/BUILD.gn ('k') | services/fake_surfaces/fake_surfaces_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698