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

Unified Diff: mojo/public/tests/bindings/buffer_unittest.cc

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/buffer_unittest.cc
diff --git a/mojo/public/tests/bindings/buffer_unittest.cc b/mojo/public/tests/bindings/buffer_unittest.cc
index ab181505bb738b530860a52d8d964a17f19ccabb..06cb4caabad82cd66d67960269f111cb57e3d13c 100644
--- a/mojo/public/tests/bindings/buffer_unittest.cc
+++ b/mojo/public/tests/bindings/buffer_unittest.cc
@@ -4,7 +4,7 @@
#include "mojo/public/bindings/lib/bindings_serialization.h"
#include "mojo/public/bindings/lib/buffer.h"
-#include "mojo/public/tests/bindings/simple_bindings_support.h"
+#include "mojo/public/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
@@ -21,7 +21,7 @@ bool IsZero(void* p_buf, size_t size) {
// Tests small and large allocations in ScratchBuffer.
TEST(ScratchBufferTest, Basic) {
- SimpleBindingsSupport bindings_support;
+ Environment env;
// Test that a small allocation is placed on the stack.
internal::ScratchBuffer buf;
@@ -42,7 +42,7 @@ TEST(ScratchBufferTest, Basic) {
// Tests that Buffer::current() returns the correct value.
TEST(ScratchBufferTest, Stacked) {
- SimpleBindingsSupport bindings_support;
+ Environment env;
EXPECT_FALSE(Buffer::current());
@@ -61,7 +61,7 @@ TEST(ScratchBufferTest, Stacked) {
// Tests that FixedBuffer allocates memory aligned to 8 byte boundaries.
TEST(FixedBufferTest, Alignment) {
- SimpleBindingsSupport bindings_support;
+ Environment env;
internal::FixedBuffer buf(internal::Align(10) * 2);
ASSERT_EQ(buf.size(), 16u * 2);
@@ -81,7 +81,7 @@ TEST(FixedBufferTest, Alignment) {
// Tests that FixedBuffer::Leak passes ownership to the caller.
TEST(FixedBufferTest, Leak) {
- SimpleBindingsSupport bindings_support;
+ Environment env;
void* ptr = NULL;
void* buf_ptr = NULL;

Powered by Google App Engine
This is Rietveld 408576698