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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/module_load_analyzer_win_unittest.cc

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/incident_reporting/module_load_analyzer.h " 5 #include "chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.h "
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/scoped_native_library.h" 14 #include "base/scoped_native_library.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" 16 #include "chrome/browser/safe_browsing/incident_reporting/incident.h"
17 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" 17 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
18 #include "chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver .h" 18 #include "chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver .h"
19 #include "chrome/common/safe_browsing/csd.pb.h" 19 #include "components/safe_browsing/csd.pb.h"
20 #include "components/safe_browsing_db/database_manager.h" 20 #include "components/safe_browsing_db/database_manager.h"
21 #include "components/safe_browsing_db/test_database_manager.h" 21 #include "components/safe_browsing_db/test_database_manager.h"
22 #include "content/public/test/test_browser_thread_bundle.h" 22 #include "content/public/test/test_browser_thread_bundle.h"
23 #include "content/public/test/test_utils.h" 23 #include "content/public/test/test_utils.h"
24 #include "testing/gmock/include/gmock/gmock.h" 24 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 using ::testing::Return; 27 using ::testing::Return;
28 using ::testing::StrictMock; 28 using ::testing::StrictMock;
29 using ::testing::_; 29 using ::testing::_;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 TEST_F(ModuleLoadAnalayzerTest, TestNonWhitelistedDLLs) { 116 TEST_F(ModuleLoadAnalayzerTest, TestNonWhitelistedDLLs) {
117 EXPECT_CALL(*mock_safe_browsing_database_manager_, 117 EXPECT_CALL(*mock_safe_browsing_database_manager_,
118 MatchModuleWhitelistString(kNonWhitelistedModuleName)) 118 MatchModuleWhitelistString(kNonWhitelistedModuleName))
119 .WillOnce(Return(false)); 119 .WillOnce(Return(false));
120 120
121 ExpectIncident(kNonWhitelistedModuleName); 121 ExpectIncident(kNonWhitelistedModuleName);
122 } 122 }
123 123
124 } // namespace safe_browsing 124 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698