diff options
author | gspencer@google.com <gspencer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-01 22:30:03 +0000 |
---|---|---|
committer | gspencer@google.com <gspencer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-01 22:30:03 +0000 |
commit | 30eb751d1a778b73e20c238ec2f54b7293eb1b6f (patch) | |
tree | 64f775e2bf824492b8d1e3e2680d05592a0abb57 /o3d/import | |
parent | 5d3d854522bf38df112ca73e3bb6e9c4adb627ae (diff) | |
download | chromium_src-30eb751d1a778b73e20c238ec2f54b7293eb1b6f.zip chromium_src-30eb751d1a778b73e20c238ec2f54b7293eb1b6f.tar.gz chromium_src-30eb751d1a778b73e20c238ec2f54b7293eb1b6f.tar.bz2 |
Adding in most of the unit tests. This adds 406 of our unit tests
into the gyp build. 21 of them fail, but that is only because they don't
have test input yet -- I haven't added the build code that copies
the test inputs into the build dir yet.
Review URL: http://codereview.chromium.org/147129
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/import')
-rw-r--r-- | o3d/import/cross/memory_stream_test.cc | 6 | ||||
-rw-r--r-- | o3d/import/import.gyp | 35 |
2 files changed, 38 insertions, 3 deletions
diff --git a/o3d/import/cross/memory_stream_test.cc b/o3d/import/cross/memory_stream_test.cc index a02fcca..77ae95c 100644 --- a/o3d/import/cross/memory_stream_test.cc +++ b/o3d/import/cross/memory_stream_test.cc @@ -233,7 +233,7 @@ TEST_F(MemoryStreamTest, EndianSanityFloat32) { 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, EndianSanityFloat32) { 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; diff --git a/o3d/import/import.gyp b/o3d/import/import.gyp index 4ecb9c64..41cd4c4 100644 --- a/o3d/import/import.gyp +++ b/o3d/import/import.gyp @@ -126,5 +126,40 @@ ], ], }, + { + 'target_name': 'o3dImportTest', + 'type': 'none', + 'dependencies': [ + 'o3dArchive', + 'o3dImport', + '../../<(antlrdir)/antlr.gyp:antlr3c', + '../../<(fcolladadir)/fcollada.gyp:fcollada', + '../../<(jpegdir)/libjpeg.gyp:libjpeg', + '../../<(pngdir)/libpng.gyp:libpng', + '../../<(zlibdir)/zlib.gyp:zlib', + ], + 'direct_dependent_settings': { + 'sources': [ + 'cross/gz_compressor_test.cc', + 'cross/gz_decompressor_test.cc', + 'cross/memory_buffer_test.cc', + 'cross/memory_stream_test.cc', + 'cross/raw_data_test.cc', + 'cross/tar_generator_test.cc', + 'cross/tar_processor_test.cc', + 'cross/targz_generator_test.cc', + 'cross/targz_processor_test.cc', + ], + 'conditions' : [ + ['renderer == "d3d9" and OS == "win"', + { + 'include_dirs': [ + '$(DXSDK_DIR)/Include', + ], + } + ], + ], + }, + }, ], } |