OLD | NEW |
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 Loading... |
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 |
OLD | NEW |