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

Unified Diff: import/cross/memory_stream_test.cc

Issue 147129: Adding in most of the unit tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 6 months 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 | « core/win/d3d9/effect_d3d9.cc ('k') | import/import.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: import/cross/memory_stream_test.cc
===================================================================
--- import/cross/memory_stream_test.cc (revision 19743)
+++ import/cross/memory_stream_test.cc (working copy)
@@ -233,7 +233,7 @@
uint8 *p8 = reinterpret_cast<uint8*>(p);
MemoryWriteStream write_stream(p8, sizeof(int32) * 2);
- float value = 3.14159;
+ float value = 3.14159f;
write_stream.WriteLittleEndianFloat32(value);
write_stream.WriteBigEndianFloat32(value);
@@ -261,9 +261,9 @@
TEST_F(MemoryStreamTest, Endian) {
const int16 kValue1 = 13243;
const int32 kValue2 = 2393043;
- const float kValue3 = -0.039483;
+ const float kValue3 = -0.039483f;
const int16 kValue4 = -3984;
- const float kValue5 = 1234.5678;
+ const float kValue5 = 1234.5678f;
const uint8 kValue6 = 5; // write a single byte to make things interesting
const int32 kValue7 = -3920393;
« no previous file with comments | « core/win/d3d9/effect_d3d9.cc ('k') | import/import.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698