chromium/components/services/storage/public/mojom/test_api.test-mojom

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module storage.mojom;

// A top-level Storage Service interface accessible to the browser only in
// browser tests. See |StorageService.BindTestApi()|.
interface TestApi {
  // Tells the service to crash its process immediately.
  CrashNow();

  // Tells the service to create a new LevelDB database and force a compaction.
  // This exercises an interesting code path in the sandboxed service which we
  // want tests to cover.
  [Sync] ForceLeveldbDatabaseCompaction(string name) => ();
};