1 : // Copyright 2016 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_REFINERY_TYPES_UNITTEST_UTIL_H_
16 : #define SYZYGY_REFINERY_TYPES_UNITTEST_UTIL_H_
17 :
18 : #include "base/containers/hash_tables.h"
19 : #include "gtest/gtest.h"
20 : #include "syzygy/refinery/core/address.h"
21 :
22 m : namespace testing {
23 :
24 m : class PdbCrawlerVTableTestBase : public testing::Test {
25 m : protected:
26 m : virtual void GetVFTableRVAs(
27 m : const wchar_t* pdb_path_str,
28 m : base::hash_set<refinery::RelativeAddress>* vftable_rvas) = 0;
29 m : void PerformGetVFTableRVAsTest(const wchar_t* pdb_path_str,
30 m : const wchar_t* dll_path_str);
31 m : };
32 :
33 m : } // namespace testing
34 :
35 : #endif // SYZYGY_REFINERY_TYPES_UNITTEST_UTIL_H_
|