summaryrefslogtreecommitdiffstats
path: root/courgette/base_test_unittest.h
diff options
context:
space:
mode:
authordgarrett@chromium.org <dgarrett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-19 05:31:59 +0000
committerdgarrett@chromium.org <dgarrett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-19 05:31:59 +0000
commitc678e65edb7774bb7696ef48fc5415d52b597cb3 (patch)
tree9a9e81b83968a108bb08d69ffd104191b2795a15 /courgette/base_test_unittest.h
parent679346ca2c269fff9726c7ed6e94aaed7d8b563e (diff)
downloadchromium_src-c678e65edb7774bb7696ef48fc5415d52b597cb3.zip
chromium_src-c678e65edb7774bb7696ef48fc5415d52b597cb3.tar.gz
chromium_src-c678e65edb7774bb7696ef48fc5415d52b597cb3.tar.bz2
Add a unittest for ensemble diffing.
The courgette refactoring broke the ability to handle ensembles with 64 bit PE files, or resource only DLLs. This unittest handles patching ensembles that contain these file types to confirm my fix, and ensure I don't introduce this regression again. BUG=None TEST=New Unittest Review URL: http://codereview.chromium.org/8330006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/base_test_unittest.h')
-rw-r--r--courgette/base_test_unittest.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/courgette/base_test_unittest.h b/courgette/base_test_unittest.h
index 777495a..170a0c9 100644
--- a/courgette/base_test_unittest.h
+++ b/courgette/base_test_unittest.h
@@ -7,6 +7,7 @@
#ifndef COURGETTE_BASE_TEST_UNITTEST_H_
#define COURGETTE_BASE_TEST_UNITTEST_H_
+#include <list>
#include <string>
#include "base/file_util.h"
@@ -16,6 +17,10 @@ class BaseTest : public testing::Test {
public:
std::string FileContents(const char* file_name) const;
+ // Pass a list of strings, and get back the concatenated contents
+ // of each of the mentioned files.
+ std::string FilesContents(std::list<std::string> file_names) const;
+
private:
virtual void SetUp();
virtual void TearDown();