1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5#include "nsISupports.idl"
6
7interface nsIObserver;
8
9/**
10 * This is an internal interface used only for testing purposes.
11 *
12 * THIS IS NOT AN API TO BE USED BY EXTENSIONS! ONLY USED BY MOZILLA TESTS.
13 */
14[scriptable, builtinclass, uuid(4e8ba935-92e1-4a74-944b-b1a2f02a7480)]
15interface nsICacheTesting : nsISupports
16{
17  void suspendCacheIOThread(in uint32_t aLevel);
18  void resumeCacheIOThread();
19  void flush(in nsIObserver aObserver);
20};
21