| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef _CRASH_REPORTER_TEST_HELPERS_H_ | |
| 6 #define _CRASH_REPORTER_TEST_HELPERS_H_ | |
| 7 | |
| 8 #include "gtest/gtest.h" | |
| 9 | |
| 10 inline void ExpectFileEquals(const char *golden, | |
| 11 const char *file_path) { | |
| 12 std::string contents; | |
| 13 EXPECT_TRUE(file_util::ReadFileToString(FilePath(file_path), | |
| 14 &contents)); | |
| 15 EXPECT_EQ(golden, contents); | |
| 16 } | |
| 17 | |
| 18 #endif // _CRASH_REPORTER_TEST_HELPERS_H_ | |
| OLD | NEW |