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

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

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: Created 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/common/safe_browsing/binary_feature_extractor.h" 5 #include "chrome/common/safe_browsing/binary_feature_extractor.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "chrome/common/chrome_paths.h" 9 #include "chrome/common/chrome_paths.h"
10 #include "chrome/common/safe_browsing/csd.pb.h" 10 #include "components/safe_browsing/csd.pb.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace safe_browsing { 13 namespace safe_browsing {
14 namespace { 14 namespace {
15 15
16 class BinaryFeatureExtractorMacTest : public testing::Test { 16 class BinaryFeatureExtractorMacTest : public testing::Test {
17 protected: 17 protected:
18 void SetUp() override { 18 void SetUp() override {
19 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_data_)); 19 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_data_));
20 feature_extractor_ = new BinaryFeatureExtractor(); 20 feature_extractor_ = new BinaryFeatureExtractor();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 base::FilePath path = GetPath("src.c"); 66 base::FilePath path = GetPath("src.c");
67 EXPECT_FALSE(feature_extractor()->ExtractImageFeatures( 67 EXPECT_FALSE(feature_extractor()->ExtractImageFeatures(
68 path, 0, &image_headers, &signed_data)); 68 path, 0, &image_headers, &signed_data));
69 69
70 EXPECT_EQ(0, image_headers.mach_o_headers().size()); 70 EXPECT_EQ(0, image_headers.mach_o_headers().size());
71 EXPECT_EQ(0, signed_data.size()); 71 EXPECT_EQ(0, signed_data.size());
72 } 72 }
73 73
74 } // namespace 74 } // namespace
75 } // namespace safe_browsing 75 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698