| OLD | NEW |
| 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 "ppapi/tests/test_flash_drm.h" | 5 #include "ppapi/tests/test_flash_drm.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #if defined(PPAPI_OS_WIN) | 9 #if defined(PPAPI_OS_WIN) |
| 8 #include <Windows.h> | 10 #include <Windows.h> |
| 9 #endif | 11 #endif |
| 10 | 12 |
| 11 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 12 #include "ppapi/c/private/ppb_file_ref_private.h" | 14 #include "ppapi/c/private/ppb_file_ref_private.h" |
| 13 #include "ppapi/c/private/ppb_flash_drm.h" | 15 #include "ppapi/c/private/ppb_flash_drm.h" |
| 14 #include "ppapi/cpp/instance.h" | 16 #include "ppapi/cpp/instance.h" |
| 15 #include "ppapi/cpp/module.h" | 17 #include "ppapi/cpp/module.h" |
| 16 #include "ppapi/cpp/private/flash_device_id.h" | 18 #include "ppapi/cpp/private/flash_device_id.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 ASSERT_TRUE(file_ref_private); | 124 ASSERT_TRUE(file_ref_private); |
| 123 Var path(PassRef(), file_ref_private->GetAbsolutePath(result.pp_resource())); | 125 Var path(PassRef(), file_ref_private->GetAbsolutePath(result.pp_resource())); |
| 124 ASSERT_TRUE(path.is_string()); | 126 ASSERT_TRUE(path.is_string()); |
| 125 std::string path_string = path.AsString(); | 127 std::string path_string = path.AsString(); |
| 126 std::string expected_filename = std::string(kExepectedVoucherFilename); | 128 std::string expected_filename = std::string(kExepectedVoucherFilename); |
| 127 ASSERT_EQ(expected_filename, | 129 ASSERT_EQ(expected_filename, |
| 128 path_string.substr(path_string.size() - expected_filename.size())); | 130 path_string.substr(path_string.size() - expected_filename.size())); |
| 129 | 131 |
| 130 PASS(); | 132 PASS(); |
| 131 } | 133 } |
| OLD | NEW |