• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 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 #include <utility>
6 
7 #include "mojo/public/tools/fuzzers/fuzz.mojom.h"
8 #include "mojo/public/tools/fuzzers/fuzz_impl.h"
9 
FuzzImpl(fuzz::mojom::FuzzInterfaceRequest request)10 FuzzImpl::FuzzImpl(fuzz::mojom::FuzzInterfaceRequest request)
11     : binding_(this, std::move(request)) {}
12 
~FuzzImpl()13 FuzzImpl::~FuzzImpl() {}
14 
FuzzBasic()15 void FuzzImpl::FuzzBasic() {}
16 
FuzzBasicResp(FuzzBasicRespCallback callback)17 void FuzzImpl::FuzzBasicResp(FuzzBasicRespCallback callback) {
18   std::move(callback).Run();
19 }
20 
FuzzBasicSyncResp(FuzzBasicSyncRespCallback callback)21 void FuzzImpl::FuzzBasicSyncResp(FuzzBasicSyncRespCallback callback) {
22   std::move(callback).Run();
23 }
24 
FuzzArgs(fuzz::mojom::FuzzStructPtr a,fuzz::mojom::FuzzStructPtr b)25 void FuzzImpl::FuzzArgs(fuzz::mojom::FuzzStructPtr a,
26                         fuzz::mojom::FuzzStructPtr b) {}
27 
FuzzArgsResp(fuzz::mojom::FuzzStructPtr a,fuzz::mojom::FuzzStructPtr b,FuzzArgsRespCallback callback)28 void FuzzImpl::FuzzArgsResp(fuzz::mojom::FuzzStructPtr a,
29                             fuzz::mojom::FuzzStructPtr b,
30                             FuzzArgsRespCallback callback) {
31   std::move(callback).Run();
32 }
33 
FuzzArgsSyncResp(fuzz::mojom::FuzzStructPtr a,fuzz::mojom::FuzzStructPtr b,FuzzArgsSyncRespCallback callback)34 void FuzzImpl::FuzzArgsSyncResp(fuzz::mojom::FuzzStructPtr a,
35                                 fuzz::mojom::FuzzStructPtr b,
36                                 FuzzArgsSyncRespCallback callback) {
37   std::move(callback).Run();
38 }
39 
FuzzAssociated(fuzz::mojom::FuzzDummyInterfaceAssociatedRequest req)40 void FuzzImpl::FuzzAssociated(
41     fuzz::mojom::FuzzDummyInterfaceAssociatedRequest req) {
42   associated_bindings_.AddBinding(this, std::move(req));
43 }
44 
Ping()45 void FuzzImpl::Ping() {}
46