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

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

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/synchronization/waitable_event.h" 5 #include "base/synchronization/waitable_event.h"
6 #include "ipc/ipc_message_utils.h" 6 #include "ipc/ipc_message_utils.h"
7 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 7 #include "ppapi/c/dev/ppb_fullscreen_dev.h"
8 #include "ppapi/c/pp_var.h" 8 #include "ppapi/c/pp_var.h"
9 #include "ppapi/c/ppb_core.h" 9 #include "ppapi/c/ppb_core.h"
10 #include "ppapi/c/ppb_url_loader.h" 10 #include "ppapi/c/ppb_url_loader.h"
11 #include "ppapi/c/ppp_instance.h" 11 #include "ppapi/c/ppp_instance.h"
12 #include "ppapi/proxy/ppapi_messages.h" 12 #include "ppapi/proxy/ppapi_messages.h"
13 #include "ppapi/proxy/ppapi_proxy_test.h" 13 #include "ppapi/proxy/ppapi_proxy_test.h"
14 14
15 namespace pp { 15 namespace ppapi {
16 namespace proxy { 16 namespace proxy {
17 17
18 namespace { 18 namespace {
19 // This is a poor man's mock of PPP_Instance using global variables. Eventually 19 // This is a poor man's mock of PPP_Instance using global variables. Eventually
20 // we should generalize making PPAPI interface mocks by using IDL or macro/ 20 // we should generalize making PPAPI interface mocks by using IDL or macro/
21 // template magic. 21 // template magic.
22 PP_Instance received_instance; 22 PP_Instance received_instance;
23 uint32_t received_argc; 23 uint32_t received_argc;
24 std::vector<std::string> received_argn; 24 std::vector<std::string> received_argn;
25 std::vector<std::string> received_argv; 25 std::vector<std::string> received_argv;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 EXPECT_EQ(received_instance, expected_instance); 174 EXPECT_EQ(received_instance, expected_instance);
175 EXPECT_EQ(received_has_focus, expected_has_focus); 175 EXPECT_EQ(received_has_focus, expected_has_focus);
176 176
177 // TODO(dmichael): Need to mock out a resource Tracker to be able to test 177 // TODO(dmichael): Need to mock out a resource Tracker to be able to test
178 // HandleResourceLoad. It also requires 178 // HandleResourceLoad. It also requires
179 // PPB_Core.AddRefResource and for PPB_URLLoader to be 179 // PPB_Core.AddRefResource and for PPB_URLLoader to be
180 // registered. 180 // registered.
181 } 181 }
182 182
183 } // namespace proxy 183 } // namespace proxy
184 } // namespace pp 184 } // namespace ppapi
185 185
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698