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/cpp/bindings/allocation_scope.h" | 5 #include "mojo/public/cpp/bindings/allocation_scope.h" |
6 #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" | 7 #include "mojo/public/cpp/bindings/lib/fixed_buffer.h" |
8 #include "mojo/public/cpp/bindings/lib/scratch_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" |
(...skipping 69 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 |