15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file.
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)#ifndef MOJO_EMBEDDER_TEST_EMBEDDER_H_
623730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)#define MOJO_EMBEDDER_TEST_EMBEDDER_H_
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "mojo/system/system_impl_export.h"
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace mojo {
115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace embedder {
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace test {
135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// This shuts down the global, singleton instance. (Note: "Real" embedders are
155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// not expected to ever shut down this instance. This |Shutdown()| function will
165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// do more work to ensure that tests don't leak, etc.) Returns true if there
175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// were no problems, false if there were leaks -- i.e., handles still open -- or
185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// any other problems.
195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)MOJO_SYSTEM_IMPL_EXPORT bool Shutdown();
205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}  // namespace test
225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}  // namespace embedder
235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}  // namespace mojo
245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2523730a6e56a168d1879203e4b3819bb36e3d8f1fTorne (Richard Coles)#endif  // MOJO_EMBEDDER_EMBEDDER_H_
26