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

Side by Side Diff: content/renderer/java/gin_java_bridge_value_converter_unittest.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h>
6
5 #include <cmath> 7 #include <cmath>
6 8
7 #include "base/basictypes.h" 9 #include "base/macros.h"
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
10 #include "content/common/android/gin_java_bridge_value.h" 12 #include "content/common/android/gin_java_bridge_value.h"
11 #include "content/renderer/java/gin_java_bridge_value_converter.h" 13 #include "content/renderer/java/gin_java_bridge_value_converter.h"
12 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 #include "v8/include/v8.h" 15 #include "v8/include/v8.h"
14 16
15 namespace content { 17 namespace content {
16 18
17 class GinJavaBridgeValueConverterTest : public testing::Test { 19 class GinJavaBridgeValueConverterTest : public testing::Test {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 base::ListValue* list; 129 base::ListValue* list;
128 ASSERT_TRUE(list_value->GetAsList(&list)) << typed_array_type; 130 ASSERT_TRUE(list_value->GetAsList(&list)) << typed_array_type;
129 EXPECT_EQ(1u, list->GetSize()) << typed_array_type; 131 EXPECT_EQ(1u, list->GetSize()) << typed_array_type;
130 double first_element; 132 double first_element;
131 ASSERT_TRUE(list->GetDouble(0, &first_element)) << typed_array_type; 133 ASSERT_TRUE(list->GetDouble(0, &first_element)) << typed_array_type;
132 EXPECT_EQ(42.0, first_element) << typed_array_type; 134 EXPECT_EQ(42.0, first_element) << typed_array_type;
133 } 135 }
134 } 136 }
135 137
136 } // namespace content 138 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/java/gin_java_bridge_value_converter.cc ('k') | content/renderer/java/gin_java_function_invocation_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698