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

Unified Diff: content/child/v8_value_converter_impl_unittest.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/v8_value_converter_impl.cc ('k') | content/child/web_data_consumer_handle_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/v8_value_converter_impl_unittest.cc
diff --git a/content/child/v8_value_converter_impl_unittest.cc b/content/child/v8_value_converter_impl_unittest.cc
index 75bfebc1b4ccfe1fd73a42906f0d3345e33f16b0..311fa7f4aa7c415619f09b80d211cca8a994c7f5 100644
--- a/content/child/v8_value_converter_impl_unittest.cc
+++ b/content/child/v8_value_converter_impl_unittest.cc
@@ -2,8 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+#include <stdint.h>
+
#include <cmath>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "base/test/values_test_util.h"
@@ -80,7 +84,7 @@ class V8ValueConverterImplTest : public testing::Test {
return std::string(*utf8, utf8.length());
}
- std::string GetString(base::ListValue* value, uint32 index) {
+ std::string GetString(base::ListValue* value, uint32_t index) {
std::string temp;
if (!value->GetString(static_cast<size_t>(index), &temp)) {
ADD_FAILURE();
@@ -89,7 +93,7 @@ class V8ValueConverterImplTest : public testing::Test {
return temp;
}
- std::string GetString(v8::Local<v8::Array> value, uint32 index) {
+ std::string GetString(v8::Local<v8::Array> value, uint32_t index) {
v8::Local<v8::String> temp = value->Get(index).As<v8::String>();
if (temp.IsEmpty()) {
ADD_FAILURE();
@@ -118,7 +122,7 @@ class V8ValueConverterImplTest : public testing::Test {
return child->IsNull();
}
- bool IsNull(base::ListValue* value, uint32 index) {
+ bool IsNull(base::ListValue* value, uint32_t index) {
base::Value* child = NULL;
if (!value->Get(static_cast<size_t>(index), &child)) {
ADD_FAILURE();
@@ -127,7 +131,7 @@ class V8ValueConverterImplTest : public testing::Test {
return child->GetType() == base::Value::TYPE_NULL;
}
- bool IsNull(v8::Local<v8::Array> value, uint32 index) {
+ bool IsNull(v8::Local<v8::Array> value, uint32_t index) {
v8::Local<v8::Value> child = value->Get(index);
if (child.IsEmpty()) {
ADD_FAILURE();
« no previous file with comments | « content/child/v8_value_converter_impl.cc ('k') | content/child/web_data_consumer_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698