root/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_core_interface.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. AddRefResource
  2. ReleaseResource

// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "fake_ppapi/fake_core_interface.h"

FakeCoreInterface::FakeCoreInterface(FakeResourceManager* manager)
    : resource_manager_(manager) {}

void FakeCoreInterface::AddRefResource(PP_Resource handle) {
  return resource_manager_->AddRef(handle);
}

void FakeCoreInterface::ReleaseResource(PP_Resource handle) {
  return resource_manager_->Release(handle);
}

/* [<][>][^][v][top][bottom][index][help] */