| Index: ppapi/tests/test_flash_device_id.cc
|
| diff --git a/ppapi/tests/test_flash_device_id.cc b/ppapi/tests/test_flash_device_id.cc
|
| deleted file mode 100644
|
| index a4e20b28e78a0794cec4695f6e9e46950503af7a..0000000000000000000000000000000000000000
|
| --- a/ppapi/tests/test_flash_device_id.cc
|
| +++ /dev/null
|
| @@ -1,42 +0,0 @@
|
| -// Copyright (c) 2012 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 "ppapi/tests/test_flash_device_id.h"
|
| -
|
| -#include "ppapi/c/pp_macros.h"
|
| -#include "ppapi/c/private/ppb_flash_device_id.h"
|
| -#include "ppapi/cpp/instance.h"
|
| -#include "ppapi/cpp/module.h"
|
| -#include "ppapi/cpp/private/flash_device_id.h"
|
| -#include "ppapi/cpp/var.h"
|
| -#include "ppapi/tests/testing_instance.h"
|
| -
|
| -REGISTER_TEST_CASE(FlashDeviceID);
|
| -
|
| -using pp::flash::DeviceID;
|
| -using pp::Var;
|
| -
|
| -TestFlashDeviceID::TestFlashDeviceID(TestingInstance* instance)
|
| - : TestCase(instance),
|
| - PP_ALLOW_THIS_IN_INITIALIZER_LIST(callback_factory_(this)) {
|
| -}
|
| -
|
| -void TestFlashDeviceID::RunTests(const std::string& filter) {
|
| - RUN_TEST(GetDeviceID, filter);
|
| -}
|
| -
|
| -std::string TestFlashDeviceID::TestGetDeviceID() {
|
| - DeviceID device_id(instance_);
|
| - TestCompletionCallbackWithOutput<Var> output_callback(
|
| - instance_->pp_instance());
|
| - int32_t rv = device_id.GetDeviceID(output_callback.GetCallback());
|
| - output_callback.WaitForResult(rv);
|
| - ASSERT_TRUE(output_callback.result() == PP_OK);
|
| - Var result = output_callback.output();
|
| - ASSERT_TRUE(result.is_string());
|
| - std::string id = result.AsString();
|
| - ASSERT_FALSE(id.empty());
|
| -
|
| - PASS();
|
| -}
|
|
|