mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
45 lines
857 B
Plaintext
45 lines
857 B
Plaintext
// Copyright 2016 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.
|
|
|
|
module mojo.test;
|
|
|
|
interface TestSyncCodeGeneration {
|
|
[Sync]
|
|
NoInput() => (int32 result);
|
|
|
|
[Sync]
|
|
NoOutput(int32 value) => ();
|
|
|
|
[Sync]
|
|
NoInOut() => ();
|
|
|
|
[Sync]
|
|
HaveInOut(int32 value1, int32 value2) => (int32 result1, int32 result2);
|
|
};
|
|
|
|
interface TestSync {
|
|
[Sync]
|
|
Ping() => ();
|
|
|
|
[Sync]
|
|
Echo(int32 value) => (int32 result);
|
|
|
|
AsyncEcho(int32 value) => (int32 result);
|
|
};
|
|
|
|
// Test sync method support with associated interfaces.
|
|
interface TestSyncMaster {
|
|
[Sync]
|
|
Ping() => ();
|
|
|
|
[Sync]
|
|
Echo(int32 value) => (int32 result);
|
|
|
|
AsyncEcho(int32 value) => (int32 result);
|
|
|
|
SendInterface(associated TestSync ptr);
|
|
|
|
SendRequest(associated TestSync& request);
|
|
};
|