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

Side by Side Diff: chrome/browser/extensions/blacklist_state_fetcher_unittest.cc

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 #include "chrome/browser/extensions/blacklist_state_fetcher.h"
5 #include "base/bind.h" 6 #include "base/bind.h"
6 #include "base/run_loop.h" 7 #include "base/run_loop.h"
7 #include "chrome/browser/extensions/blacklist_state_fetcher.h"
8 #include "chrome/browser/extensions/test_blacklist_state_fetcher.h" 8 #include "chrome/browser/extensions/test_blacklist_state_fetcher.h"
9 #include "chrome/common/safe_browsing/crx_info.pb.h" 9 #include "components/safe_browsing/common/crx_info.pb.h"
10 #include "content/public/test/test_browser_thread_bundle.h" 10 #include "content/public/test/test_browser_thread_bundle.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 namespace { 14 namespace {
15 15
16 void Assign(BlacklistState* to, BlacklistState from) { 16 void Assign(BlacklistState* to, BlacklistState from) {
17 *to = from; 17 *to = from;
18 } 18 }
19 19
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 EXPECT_EQ(BLACKLISTED_MALWARE, result[2]); 77 EXPECT_EQ(BLACKLISTED_MALWARE, result[2]);
78 EXPECT_EQ(BLACKLISTED_MALWARE, result[3]); 78 EXPECT_EQ(BLACKLISTED_MALWARE, result[3]);
79 EXPECT_EQ(BLACKLISTED_SECURITY_VULNERABILITY, result[4]); 79 EXPECT_EQ(BLACKLISTED_SECURITY_VULNERABILITY, result[4]);
80 EXPECT_EQ(BLACKLISTED_CWS_POLICY_VIOLATION, result[5]); 80 EXPECT_EQ(BLACKLISTED_CWS_POLICY_VIOLATION, result[5]);
81 EXPECT_EQ(BLACKLISTED_POTENTIALLY_UNWANTED, result[6]); 81 EXPECT_EQ(BLACKLISTED_POTENTIALLY_UNWANTED, result[6]);
82 EXPECT_EQ(NOT_BLACKLISTED, result[7]); 82 EXPECT_EQ(NOT_BLACKLISTED, result[7]);
83 EXPECT_EQ(NOT_BLACKLISTED, result[8]); 83 EXPECT_EQ(NOT_BLACKLISTED, result[8]);
84 } 84 }
85 85
86 } // namespace extensions 86 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/blacklist_state_fetcher.cc ('k') | chrome/browser/extensions/test_blacklist_state_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698