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

Side by Side Diff: syzygy/experimental/protect/protect_lib/protect_util.h

Issue 2535563002: Added all code for integrity check transform (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 // Copyright 2015 Google Inc. All Rights Reserved. 1 // Copyright 2015 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with 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 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 #ifndef SYZYGY_MINIDUMP_UNITTEST_UTIL_H_ 15 #ifndef SYZYGY_PROTECT_PROTECT_LIB_PROTECT_UTIL_H_
16 #define SYZYGY_MINIDUMP_UNITTEST_UTIL_H_ 16 #define SYZYGY_PROTECT_PROTECT_LIB_PROTECT_UTIL_H_
17 17
18 #include "base/files/file_path.h" 18 #include "base\basictypes.h"
19 #include <vector>
19 20
20 namespace testing { 21 class VectGenerator {
22 public:
23 // Generates an array of random numbers such that they sum up to -x mod _kSum
24 // @param x - an unsigned integer value
25 // @param len - the length of the array of random numbers
26 // @return a vector with random numbers which sum up to -x mod _kSum
27 static std::vector<uint8>* Generate(uint8 x, int len);
21 28
22 class TestMinidumps { 29 private:
23 public: 30 static unsigned int _kSum;
24 // @returns the path to a 32 bit notepad dump file.
25 static const base::FilePath GetNotepad32Dump();
26 // @returns the path to a 64 bit notepad dump file.
27 static const base::FilePath GetNotepad64Dump();
28 }; 31 };
29 32
30 } // namespace testing 33 #endif // SYZYGY_PROTECT_PROTECT_LIB_PROTECT_UTIL_H_
31
32 #endif // SYZYGY_MINIDUMP_UNITTEST_UTIL_H_
OLDNEW
« no previous file with comments | « syzygy/experimental/protect/protect_lib/protect_flummox.cc ('k') | syzygy/experimental/protect/protect_lib/protect_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698