| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include "gpu/command_buffer/service/gl_utils.h" | 8 #include "gpu/command_buffer/service/gl_utils.h" |
| 9 #include "gpu/ipc/service/gpu_channel.h" | 9 #include "gpu/ipc/service/gpu_channel.h" |
| 10 #include "gpu/ipc/service/gpu_channel_manager.h" | 10 #include "gpu/ipc/service/gpu_channel_manager.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 TEST_F(GpuChannelManagerTest, EstablishChannel) { | 21 TEST_F(GpuChannelManagerTest, EstablishChannel) { |
| 22 int32_t kClientId = 1; | 22 int32_t kClientId = 1; |
| 23 uint64_t kClientTracingId = 1; | 23 uint64_t kClientTracingId = 1; |
| 24 | 24 |
| 25 ASSERT_TRUE(channel_manager()); | 25 ASSERT_TRUE(channel_manager()); |
| 26 | 26 |
| 27 IPC::ChannelHandle channel_handle = channel_manager()->EstablishChannel( | 27 IPC::ChannelHandle channel_handle = channel_manager()->EstablishChannel( |
| 28 kClientId, kClientTracingId, false /* preempts */, | 28 kClientId, kClientTracingId, false /* preempts */, |
| 29 false /* allow_view_command_buffers */, | 29 false /* allow_view_command_buffers */, |
| 30 false /* allow_real_time_streams */); | 30 false /* allow_real_time_streams */); |
| 31 EXPECT_NE("", channel_handle.name); | 31 EXPECT_TRUE(channel_handle.is_mojo_channel_handle()); |
| 32 | 32 |
| 33 GpuChannel* channel = channel_manager()->LookupChannel(kClientId); | 33 GpuChannel* channel = channel_manager()->LookupChannel(kClientId); |
| 34 ASSERT_TRUE(channel); | 34 ASSERT_TRUE(channel); |
| 35 EXPECT_EQ(channel_handle.name, channel->channel_id()); | |
| 36 } | 35 } |
| 37 | 36 |
| 38 } // namespace gpu | 37 } // namespace gpu |
| OLD | NEW |