Chromium Code Reviews

Side by Side 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.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine