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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_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 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/incident_reporting/preference_validation_ delegate.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/preference_validation_ delegate.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" 17 #include "chrome/browser/safe_browsing/incident_reporting/incident.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 "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 using ::testing::_; 23 using ::testing::_;
24 using ::testing::IsNull; 24 using ::testing::IsNull;
25 using ::testing::NiceMock; 25 using ::testing::NiceMock;
26 using ::testing::WithArg; 26 using ::testing::WithArg;
27 27
28 namespace { 28 namespace {
29 const char kPrefPath[] = "atomic.pref"; 29 const char kPrefPath[] = "atomic.pref";
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 INSTANTIATE_TEST_CASE_P( 336 INSTANTIATE_TEST_CASE_P(
337 WithIncidentIgnoreBypass, 337 WithIncidentIgnoreBypass,
338 PreferenceValidationDelegateWithIncident, 338 PreferenceValidationDelegateWithIncident,
339 testing::Combine( 339 testing::Combine(
340 testing::Values(PrefHashStoreTransaction::CLEARED, 340 testing::Values(PrefHashStoreTransaction::CLEARED,
341 PrefHashStoreTransaction::CHANGED, 341 PrefHashStoreTransaction::CHANGED,
342 PrefHashStoreTransaction::UNTRUSTED_UNKNOWN_VALUE), 342 PrefHashStoreTransaction::UNTRUSTED_UNKNOWN_VALUE),
343 testing::Values(PrefHashStoreTransaction::CHANGED, 343 testing::Values(PrefHashStoreTransaction::CHANGED,
344 PrefHashStoreTransaction::CLEARED), 344 PrefHashStoreTransaction::CLEARED),
345 testing::Bool())); 345 testing::Bool()));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698