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

Side by Side Diff: chrome/common/safe_browsing/binary_feature_extractor_win_unittest.cc

Issue 1015363003: Move BinaryFeatureExtractor and PEImageReader to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zip2
Patch Set: sync to position 321353 Created 5 years, 9 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/safe_browsing/binary_feature_extractor.h" 5 #include "chrome/common/safe_browsing/binary_feature_extractor.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base_paths.h" 10 #include "base/base_paths.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
15 #include "chrome/common/safe_browsing/csd.pb.h" 15 #include "chrome/common/safe_browsing/csd.pb.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 EXPECT_TRUE(pe_headers.has_dos_header()); 175 EXPECT_TRUE(pe_headers.has_dos_header());
176 EXPECT_TRUE(pe_headers.has_file_header()); 176 EXPECT_TRUE(pe_headers.has_file_header());
177 EXPECT_TRUE(pe_headers.has_optional_headers32()); 177 EXPECT_TRUE(pe_headers.has_optional_headers32());
178 EXPECT_FALSE(pe_headers.has_optional_headers64()); 178 EXPECT_FALSE(pe_headers.has_optional_headers64());
179 EXPECT_NE(0, pe_headers.section_header_size()); 179 EXPECT_NE(0, pe_headers.section_header_size());
180 EXPECT_FALSE(pe_headers.has_export_section_data()); 180 EXPECT_FALSE(pe_headers.has_export_section_data());
181 EXPECT_EQ(1U, pe_headers.debug_data_size()); 181 EXPECT_EQ(1U, pe_headers.debug_data_size());
182 } 182 }
183 183
184 } // namespace safe_browsing 184 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/common/safe_browsing/binary_feature_extractor_win.cc ('k') | chrome/common/safe_browsing/pe_image_reader_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698