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

Unified Diff: courgette/encoded_program_unittest.cc

Issue 6716006: Identifying call sites that need to handle out of memory situations in Courgette. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « courgette/encoded_program.cc ('k') | courgette/ensemble_apply.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/encoded_program_unittest.cc
===================================================================
--- courgette/encoded_program_unittest.cc (revision 78901)
+++ courgette/encoded_program_unittest.cc (working copy)
@@ -17,18 +17,18 @@
uint32 base = 0x00900000;
program->set_image_base(base);
- program->DefineRel32Label(5, 0); // REL32 index 5 == base + 0
- program->DefineAbs32Label(7, 4); // ABS32 index 7 == base + 4
+ EXPECT_TRUE(program->DefineRel32Label(5, 0)); // REL32 index 5 == base + 0
+ EXPECT_TRUE(program->DefineAbs32Label(7, 4)); // ABS32 index 7 == base + 4
program->EndLabels();
- program->AddOrigin(0); // Start at base.
- program->AddAbs32(7);
- program->AddRel32(5);
+ EXPECT_TRUE(program->AddOrigin(0)); // Start at base.
+ EXPECT_TRUE(program->AddAbs32(7));
+ EXPECT_TRUE(program->AddRel32(5));
// Serialize and deserialize.
courgette::SinkStreamSet sinks;
- program->WriteTo(&sinks);
+ EXPECT_TRUE(program->WriteTo(&sinks));
courgette::SinkStream sink;
bool can_collect = sinks.CopyTo(&sink);
« no previous file with comments | « courgette/encoded_program.cc ('k') | courgette/ensemble_apply.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698