blob: a0733a4668e171edf5280213395e73494d16fa0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (c) 2011 The Chromium 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 COURGETTE_BASE_TEST_UNITTEST_H_
#define COURGETTE_BASE_TEST_UNITTEST_H_
#include <list>
#include <string>
#include "base/file_util.h"
#include "testing/gtest/include/gtest/gtest.h"
class BaseTest : public testing::Test {
public:
std::string FileContents(const char* file_name) const;
// Pass a list of strings, and get back the concatenated contents
// of each of the mentioned files.
std::string FilesContents(std::list<std::string> file_names) const;
private:
virtual void SetUp();
virtual void TearDown();
FilePath test_dir_;
};
#endif // COURGETTE_BASE_TEST_UNITTEST_H_
|