| // Copyright 2019 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| library fuchsia.samplertestcontroller; |
| |
| type SamplingError = strict enum : int32 { |
| MULTIPLE_SAMPLE_CALLBACKS_ERROR = 1; |
| }; |
| |
| @discoverable |
| closed protocol SamplerTestController { |
| strict IncrementInt(struct { |
| property_id uint16; |
| }) -> (); |
| strict SetOptional(struct { |
| value int64; |
| }) -> (); |
| strict RemoveOptional() -> (); |
| strict WaitForSample() -> () error SamplingError; |
| }; |