blob: bac7d298ee10bbbd022a59f5d86cddbafd020438 [file] [log] [blame]
// Copyright 2018 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 test.appmgr.integration;
using zx;
// A simple interface implemented by isolated_storage_test_util and used to test persistent storage
// isolation.
[Discoverable]
protocol DataFileReaderWriter {
// Read the file at /data/<path> in the util's namespace and return its contents. If the file
// does not exist, returns null.
ReadFile(string path) -> (string? contents);
// Write the provided contents to a file at /data/<path> in the util's namespace, overwriting
// any existing files.
WriteFile(string path, string contents) -> (zx.status status);
};