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

Unified Diff: test_helpers.h

Issue 4649002: crash-reporter: add missing header file from last commit (Closed) Base URL: http://git.chromium.org/git/crash-reporter.git@master
Patch Set: Created 10 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_helpers.h
diff --git a/test_helpers.h b/test_helpers.h
new file mode 100644
index 0000000000000000000000000000000000000000..b51590181e33c03eeae4fdea39d3adb3512123ec
--- /dev/null
+++ b/test_helpers.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef _CRASH_REPORTER_TEST_HELPERS_H_
+#define _CRASH_REPORTER_TEST_HELPERS_H_
+
+#include "gtest/gtest.h"
+
+inline void ExpectFileEquals(const char *golden,
+ const char *file_path) {
+ std::string contents;
+ EXPECT_TRUE(file_util::ReadFileToString(FilePath(file_path),
+ &contents));
+ EXPECT_EQ(golden, contents);
+}
+
+#endif // _CRASH_REPORTER_TEST_HELPERS_H_
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698