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

Side by Side Diff: gpu/ipc/service/gpu_channel_manager_unittest.cc

Issue 2448973003: Remove use of ChannelHandle::name from gpu/ipc/service. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/gpu_channel.cc ('k') | gpu/ipc/service/gpu_channel_test_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel.cc ('k') | gpu/ipc/service/gpu_channel_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698