Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: webkit/glue/cpp_variant_unittest.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webkit/glue/cpp_variant.cc ('k') | webkit/glue/devtools/debugger_agent_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « webkit/glue/cpp_variant.cc ('k') | webkit/glue/devtools/debugger_agent_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698