crash-reporter: add missing header file from last commit
Change-Id: I85fd4f6b4eb851209e36d4ba803889abd00bf274 TBR=petkov BUG=7987 TEST=unittests pass Review URL: http://codereview.chromium.org/4649002
This commit is contained in:
parent
9b34647453
commit
a5118a97d5
1 changed files with 18 additions and 0 deletions
18
crash_reporter/test_helpers.h
Normal file
18
crash_reporter/test_helpers.h
Normal file
|
|
@ -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_
|
||||
Loading…
Add table
Reference in a new issue