Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Unified Diff: mojo/public/tests/bindings/simple_bindings_support.h

Issue 134253004: Mojo: AsyncWaiter and mojo/public/environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing files Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/tests/bindings/simple_bindings_support.h
diff --git a/mojo/public/tests/bindings/simple_bindings_support.h b/mojo/public/tests/bindings/simple_bindings_support.h
deleted file mode 100644
index e124625633fa3b0c3e02e3fd00c8327b78214f01..0000000000000000000000000000000000000000
--- a/mojo/public/tests/bindings/simple_bindings_support.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef MOJO_PUBLIC_TESTS_SIMPLE_BINDINGS_SUPPORT_H_
-#define MOJO_PUBLIC_TESTS_SIMPLE_BINDINGS_SUPPORT_H_
-
-#include <list>
-
-#include "mojo/public/bindings/lib/bindings_support.h"
-
-namespace mojo {
-namespace test {
-
-class SimpleBindingsSupport : public BindingsSupport {
- public:
- SimpleBindingsSupport();
- virtual ~SimpleBindingsSupport();
-
- virtual Buffer* SetCurrentBuffer(Buffer* buf) MOJO_OVERRIDE;
- virtual Buffer* GetCurrentBuffer() MOJO_OVERRIDE;
-
- virtual AsyncWaitID AsyncWait(const Handle& handle,
- MojoWaitFlags flags,
- AsyncWaitCallback* callback) MOJO_OVERRIDE;
- virtual void CancelWait(AsyncWaitID async_wait_id) MOJO_OVERRIDE;
-
- // This method is called by unit tests to check the status of any handles
- // that we are asynchronously waiting on and to dispatch callbacks for any
- // handles that are ready.
- void Process();
-
- private:
- bool IsReady(const Handle& handle, MojoWaitFlags flags, MojoResult* result);
-
- struct Waiter {
- Handle handle;
- MojoWaitFlags flags;
- AsyncWaitCallback* callback;
- };
-
- typedef std::list<Waiter*> WaiterList;
- WaiterList waiters_;
-
- Buffer* buf_;
-};
-
-} // namespace test
-} // namespace mojo
-
-#endif // MOJO_PUBLIC_TESTS_SIMPLE_BINDINGS_SUPPORT_H_

Powered by Google App Engine
This is Rietveld 408576698