1 : // Copyright 2013 Google Inc. All Rights Reserved.
2 : //
3 : // Licensed under the Apache License, Version 2.0 (the "License");
4 : // you may not use this file except in compliance with the License.
5 : // You may obtain a copy of the License at
6 : //
7 : // http://www.apache.org/licenses/LICENSE-2.0
8 : //
9 : // Unless required by applicable law or agreed to in writing, software
10 : // distributed under the License is distributed on an "AS IS" BASIS,
11 : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 : // See the License for the specific language governing permissions and
13 : // limitations under the License.
14 :
15 : #ifndef SYZYGY_PEHACKER_UNITTEST_UTIL_H_
16 : #define SYZYGY_PEHACKER_UNITTEST_UTIL_H_
17 :
18 : #include "base/values.h"
19 : #include "gtest/gtest.h"
20 : #include "syzygy/pe/unittest_util.h"
21 :
22 m : namespace testing {
23 :
24 m : class OperationTest : public testing::PELibUnitTest {
25 m : public:
26 m : typedef testing::PELibUnitTest Super;
27 :
28 m : OperationTest();
29 :
30 m : void SetUp();
31 :
32 m : void TearDown();
33 :
34 m : void InitConfig(const char* config);
35 :
36 : // Returns the configuration dictionary.
37 m : const base::DictionaryValue* config() const { return config_.get(); }
38 :
39 m : protected:
40 m : int previous_log_level_;
41 m : scoped_ptr<base::DictionaryValue> config_;
42 m : };
43 :
44 m : } // namespace testing
45 :
46 : #endif // SYZYGY_PEHACKER_UNITTEST_UTIL_H_
|