OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 | 8 |
9 #include "webkit/api/public/WebBindings.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h" |
10 #include "webkit/glue/cpp_variant.h" | 10 #include "webkit/glue/cpp_variant.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 MSVC_PUSH_WARNING_LEVEL(0); | 13 MSVC_PUSH_WARNING_LEVEL(0); |
14 #include "npruntime_priv.h" // for NPN_InitializeVariantWithStringCopy | 14 #include "npruntime_priv.h" // for NPN_InitializeVariantWithStringCopy |
15 MSVC_POP_WARNING(); | 15 MSVC_POP_WARNING(); |
16 | 16 |
17 using WebKit::WebBindings; | 17 using WebKit::WebBindings; |
18 | 18 |
19 // Creates a std::string from an NPVariant of string type. If the NPVariant | 19 // Creates a std::string from an NPVariant of string type. If the NPVariant |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 EXPECT_FALSE(cpp.isDouble()); | 424 EXPECT_FALSE(cpp.isDouble()); |
425 EXPECT_FALSE(cpp.isNumber()); | 425 EXPECT_FALSE(cpp.isNumber()); |
426 EXPECT_FALSE(cpp.isString()); | 426 EXPECT_FALSE(cpp.isString()); |
427 EXPECT_FALSE(cpp.isVoid()); | 427 EXPECT_FALSE(cpp.isVoid()); |
428 EXPECT_FALSE(cpp.isNull()); | 428 EXPECT_FALSE(cpp.isNull()); |
429 EXPECT_FALSE(cpp.isEmpty()); | 429 EXPECT_FALSE(cpp.isEmpty()); |
430 EXPECT_TRUE(cpp.isObject()); | 430 EXPECT_TRUE(cpp.isObject()); |
431 WebBindings::releaseObject(obj); | 431 WebBindings::releaseObject(obj); |
432 CheckObject(cpp); | 432 CheckObject(cpp); |
433 } | 433 } |
OLD | NEW |