Make post_processors part of the Checkout object state.

[email protected]
BUG=
TEST=

Review URL: http://codereview.chromium.org/7044090

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@88777 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tests/checkout_test.py b/tests/checkout_test.py
index 59a3f52..4ea73a0 100755
--- a/tests/checkout_test.py
+++ b/tests/checkout_test.py
@@ -236,10 +236,11 @@
 
   def _test_process(self, co):
     """Makes sure the process lambda is called correctly."""
+    co.post_processors = [lambda *args: results.append(args)]
     co.prepare()
     ps = self.get_patches()
     results = []
-    co.apply_patch(ps, [lambda *args: results.append(args)])
+    co.apply_patch(ps)
     expected = [(co, p) for p in ps.patches]
     self.assertEquals(expected, results)
 
@@ -479,7 +480,7 @@
     self.base_co.prepare()
 
   def _get_co(self, read_only):
-    co = checkout.RawCheckout(self.root_dir, self.name)
+    co = checkout.RawCheckout(self.root_dir, self.name, None)
     if read_only:
       return checkout.ReadOnlyCheckout(co)
     return co