Fix type_conversions in test code.

The code was testing C++ to WebIDL type conversions. It should have not
been using C++ long values since these are dynamic based on the
architecture. Use the C++ type that maps correctly to the WebIDL type.

This didn't cause a layout test failure because it was testing a
roundtripped value. If the C++ interface returned a value that was
out of bounds then it could have gotten truncated because on linux
sizeof(long) == 8 but WebIDL long defines it as 4 bytes.

BUG=596846

Change-Id: I92020c1cbbec0fff7c77b5fe0129eb91bbd70c7a
Reviewed-on: https://chromium-review.googlesource.com/1145138
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576944}
1 file changed