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

Side by Side Diff: ppapi/proxy/ppp_instance_proxy_unittest.cc

Issue 2523973002: Replace gendered terms for files in ppapi/proxy/... (Closed)
Patch Set: Created 4 years 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 | « no previous file | ppapi/proxy/ppp_messaging_proxy_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "ipc/ipc_message_utils.h" 9 #include "ipc/ipc_message_utils.h"
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
11 #include "ppapi/c/ppb_core.h" 11 #include "ppapi/c/ppb_core.h"
12 #include "ppapi/c/ppb_fullscreen.h" 12 #include "ppapi/c/ppb_fullscreen.h"
13 #include "ppapi/c/ppb_url_loader.h" 13 #include "ppapi/c/ppb_url_loader.h"
14 #include "ppapi/c/ppp_instance.h" 14 #include "ppapi/c/ppp_instance.h"
15 #include "ppapi/c/private/ppb_flash_fullscreen.h" 15 #include "ppapi/c/private/ppb_flash_fullscreen.h"
16 #include "ppapi/proxy/locking_resource_releaser.h" 16 #include "ppapi/proxy/locking_resource_releaser.h"
17 #include "ppapi/proxy/ppapi_messages.h" 17 #include "ppapi/proxy/ppapi_messages.h"
18 #include "ppapi/proxy/ppapi_proxy_test.h" 18 #include "ppapi/proxy/ppapi_proxy_test.h"
19 #include "ppapi/shared_impl/ppb_view_shared.h" 19 #include "ppapi/shared_impl/ppb_view_shared.h"
20 20
21 namespace ppapi { 21 namespace ppapi {
22 namespace proxy { 22 namespace proxy {
23 23
24 namespace { 24 namespace {
25 // This is a poor man's mock of PPP_Instance using global variables. Eventually 25
26 // we should generalize making PPAPI interface mocks by using IDL or macro/ 26 // This is an ad-hoc mock of PPP_Instance using global variables. Eventually,
27 // template magic. 27 // generalize making PPAPI interface mocks by using IDL or macro/template magic.
28 PP_Instance received_instance; 28 PP_Instance received_instance;
29 uint32_t received_argc; 29 uint32_t received_argc;
30 std::vector<std::string> received_argn; 30 std::vector<std::string> received_argn;
31 std::vector<std::string> received_argv; 31 std::vector<std::string> received_argv;
32 PP_Bool bool_to_return; 32 PP_Bool bool_to_return;
33 PP_Bool DidCreate(PP_Instance instance, uint32_t argc, const char* argn[], 33 PP_Bool DidCreate(PP_Instance instance, uint32_t argc, const char* argn[],
34 const char* argv[]) { 34 const char* argv[]) {
35 received_instance = instance; 35 received_instance = instance;
36 received_argc = argc; 36 received_argc = argc;
37 received_argn.clear(); 37 received_argn.clear();
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // TODO(dmichael): Need to mock out a resource Tracker to be able to test 195 // TODO(dmichael): Need to mock out a resource Tracker to be able to test
196 // HandleResourceLoad. It also requires 196 // HandleResourceLoad. It also requires
197 // PPB_Core.AddRefResource and for PPB_URLLoader to be 197 // PPB_Core.AddRefResource and for PPB_URLLoader to be
198 // registered. 198 // registered.
199 199
200 host().resource_tracker().DidDeleteInstance(expected_instance); 200 host().resource_tracker().DidDeleteInstance(expected_instance);
201 } 201 }
202 202
203 } // namespace proxy 203 } // namespace proxy
204 } // namespace ppapi 204 } // namespace ppapi
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/ppp_messaging_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698