OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/public/bindings/lib/fixed_buffer.h" | |
6 #include "mojo/public/bindings/lib/scratch_buffer.h" | |
7 #include "mojo/public/cpp/bindings/allocation_scope.h" | 5 #include "mojo/public/cpp/bindings/allocation_scope.h" |
8 #include "mojo/public/cpp/bindings/array.h" | 6 #include "mojo/public/cpp/bindings/array.h" |
| 7 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" |
| 8 #include "mojo/public/cpp/bindings/lib/scratch_buffer.h" |
9 #include "mojo/public/cpp/environment/environment.h" | 9 #include "mojo/public/cpp/environment/environment.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 namespace test { | 13 namespace test { |
14 namespace { | 14 namespace { |
15 | 15 |
16 // Tests that basic Array operations work. | 16 // Tests that basic Array operations work. |
17 TEST(ArrayTest, Basic) { | 17 TEST(ArrayTest, Basic) { |
18 Environment env; | 18 Environment env; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 EXPECT_TRUE(handles[1].is_valid()); | 80 EXPECT_TRUE(handles[1].is_valid()); |
81 | 81 |
82 pipe0 = handles[0].Pass(); | 82 pipe0 = handles[0].Pass(); |
83 EXPECT_TRUE(pipe0.is_valid()); | 83 EXPECT_TRUE(pipe0.is_valid()); |
84 EXPECT_FALSE(handles[0].is_valid()); | 84 EXPECT_FALSE(handles[0].is_valid()); |
85 } | 85 } |
86 | 86 |
87 } // namespace | 87 } // namespace |
88 } // namespace test | 88 } // namespace test |
89 } // namespace mojo | 89 } // namespace mojo |
OLD | NEW |