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

Side by Side Diff: native_client_sdk/src/tests/nacl_io_test/fake_pepper_interface.cc

Issue 137853023: [NaCl SDK] nacl_io: Add new fakes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "fake_pepper_interface.h"
6
7 using namespace nacl_io;
8
9 FakePepperInterface::FakePepperInterface()
10 : messaging_interface_(&var_manager_, &var_interface_),
11 var_array_interface_(&var_manager_),
12 var_array_buffer_interface_(&var_manager_),
13 var_interface_(&var_manager_) {}
14
15 CoreInterface* FakePepperInterface::GetCoreInterface() {
16 return &core_interface_;
17 }
18
19 VarArrayInterface* FakePepperInterface::GetVarArrayInterface() {
20 return &var_array_interface_;
21 }
22
23 VarArrayBufferInterface* FakePepperInterface::GetVarArrayBufferInterface() {
24 return &var_array_buffer_interface_;
25 }
26
27 VarInterface* FakePepperInterface::GetVarInterface() {
28 return &var_interface_;
29 }
30
31 MessagingInterface* FakePepperInterface::GetMessagingInterface() {
32 return &messaging_interface_;
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698