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

Side by Side Diff: test_helpers.h

Issue 6517001: crash-reporter: Use standard logging and new libchromeos Process code (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crash-reporter.git@master
Patch Set: More comments Created 9 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « system_logging_mock.cc ('k') | unclean_shutdown_collector.cc » ('j') | 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 | « system_logging_mock.cc ('k') | unclean_shutdown_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698