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.


Change-Id: I92020c1cbbec0fff7c77b5fe0129eb91bbd70c7a
Reviewed-by: Jeremy Roman <>
Commit-Queue: Dave Tapuska <>
Cr-Commit-Position: refs/heads/master@{#576944}
1 file changed