| Index: mojo/edk/js/tests/js_to_cpp_tests.cc
|
| diff --git a/mojo/edk/js/tests/js_to_cpp_tests.cc b/mojo/edk/js/tests/js_to_cpp_tests.cc
|
| index 1b96610ad5045cefff25fe8e4fd745b9107208b6..39fa17d5984d7c0c3a5195fba12a805a3d7da5e2 100644
|
| --- a/mojo/edk/js/tests/js_to_cpp_tests.cc
|
| +++ b/mojo/edk/js/tests/js_to_cpp_tests.cc
|
| @@ -2,6 +2,9 @@
|
| // 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 <utility>
|
|
|
| #include "base/at_exit.h"
|
| @@ -26,23 +29,23 @@ namespace edk {
|
|
|
| // Global value updated by some checks to prevent compilers from optimizing
|
| // reads out of existence.
|
| -uint32 g_waste_accumulator = 0;
|
| +uint32_t g_waste_accumulator = 0;
|
|
|
| namespace {
|
|
|
| // Negative numbers with different values in each byte, the last of
|
| // which can survive promotion to double and back.
|
| -const int8 kExpectedInt8Value = -65;
|
| -const int16 kExpectedInt16Value = -16961;
|
| -const int32 kExpectedInt32Value = -1145258561;
|
| -const int64 kExpectedInt64Value = -77263311946305LL;
|
| +const int8_t kExpectedInt8Value = -65;
|
| +const int16_t kExpectedInt16Value = -16961;
|
| +const int32_t kExpectedInt32Value = -1145258561;
|
| +const int64_t kExpectedInt64Value = -77263311946305LL;
|
|
|
| // Positive numbers with different values in each byte, the last of
|
| // which can survive promotion to double and back.
|
| -const uint8 kExpectedUInt8Value = 65;
|
| -const uint16 kExpectedUInt16Value = 16961;
|
| -const uint32 kExpectedUInt32Value = 1145258561;
|
| -const uint64 kExpectedUInt64Value = 77263311946305LL;
|
| +const uint8_t kExpectedUInt8Value = 65;
|
| +const uint16_t kExpectedUInt16Value = 16961;
|
| +const uint32_t kExpectedUInt32Value = 1145258561;
|
| +const uint64_t kExpectedUInt64Value = 77263311946305LL;
|
|
|
| // Double/float values, including special case constants.
|
| const double kExpectedDoubleVal = 3.14159265358979323846;
|
|
|