| OLD | NEW |
| 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 "ppapi/tests/test_var_deprecated.h" | 5 #include "ppapi/tests/test_var_deprecated.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 7 #include <string.h> | 8 #include <string.h> |
| 8 | 9 |
| 9 #include <limits> | 10 #include <limits> |
| 10 | 11 |
| 12 #include "ppapi/c/dev/ppb_var_deprecated.h" |
| 11 #include "ppapi/c/pp_var.h" | 13 #include "ppapi/c/pp_var.h" |
| 12 #include "ppapi/c/dev/ppb_var_deprecated.h" | |
| 13 #include "ppapi/cpp/dev/scriptable_object_deprecated.h" | 14 #include "ppapi/cpp/dev/scriptable_object_deprecated.h" |
| 14 #include "ppapi/cpp/instance.h" | 15 #include "ppapi/cpp/instance.h" |
| 15 #include "ppapi/cpp/module.h" | 16 #include "ppapi/cpp/module.h" |
| 16 #include "ppapi/cpp/private/var_private.h" | 17 #include "ppapi/cpp/private/var_private.h" |
| 17 #include "ppapi/cpp/var.h" | 18 #include "ppapi/cpp/var.h" |
| 18 #include "ppapi/tests/testing_instance.h" | 19 #include "ppapi/tests/testing_instance.h" |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| 21 | 22 |
| 22 uint32_t kInvalidLength = static_cast<uint32_t>(-1); | 23 uint32_t kInvalidLength = static_cast<uint32_t>(-1); |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 ASSERT_TRUE(result.is_string()); | 387 ASSERT_TRUE(result.is_string()); |
| 387 ASSERT_TRUE(result.AsString() == "worksnice"); | 388 ASSERT_TRUE(result.AsString() == "worksnice"); |
| 388 | 389 |
| 389 // Reset var_from_page_ so it doesn't seem like a leak to the var leak | 390 // Reset var_from_page_ so it doesn't seem like a leak to the var leak |
| 390 // checking code. | 391 // checking code. |
| 391 var_from_page_ = pp::Var(); | 392 var_from_page_ = pp::Var(); |
| 392 | 393 |
| 393 PASS(); | 394 PASS(); |
| 394 } | 395 } |
| 395 | 396 |
| OLD | NEW |