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

Side by Side Diff: chrome/browser/extensions/test_blacklist_state_fetcher.h

Issue 2743563006: Componentize safe_browsing [+1]: move protos to component
Patch Set: fix remaining proto references 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_STATE_FETCHER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_STATE_FETCHER_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_STATE_FETCHER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_STATE_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/extensions/blacklist_state_fetcher.h" 11 #include "chrome/browser/extensions/blacklist_state_fetcher.h"
12 #include "chrome/common/safe_browsing/crx_info.pb.h" 12 #include "components/safe_browsing/common/crx_info.pb.h"
13 #include "net/url_request/test_url_fetcher_factory.h" 13 #include "net/url_request/test_url_fetcher_factory.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 // A wrapper for extensions::BlacklistStateFetcher, emulating server responses. 17 // A wrapper for extensions::BlacklistStateFetcher, emulating server responses.
18 class TestBlacklistStateFetcher { 18 class TestBlacklistStateFetcher {
19 public: 19 public:
20 explicit TestBlacklistStateFetcher(BlacklistStateFetcher* fetcher); 20 explicit TestBlacklistStateFetcher(BlacklistStateFetcher* fetcher);
21 21
22 ~TestBlacklistStateFetcher(); 22 ~TestBlacklistStateFetcher();
(...skipping 12 matching lines...) Expand all
35 std::map<std::string, ClientCRXListInfoResponse_Verdict> verdicts_; 35 std::map<std::string, ClientCRXListInfoResponse_Verdict> verdicts_;
36 36
37 net::TestURLFetcherFactory url_fetcher_factory_; 37 net::TestURLFetcherFactory url_fetcher_factory_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(TestBlacklistStateFetcher); 39 DISALLOW_COPY_AND_ASSIGN(TestBlacklistStateFetcher);
40 }; 40 };
41 41
42 } // namespace extensions 42 } // namespace extensions
43 43
44 #endif // CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_STATE_FETCHER_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_STATE_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/blacklist_state_fetcher_unittest.cc ('k') | chrome/browser/resources/safe_browsing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698