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

Side by Side Diff: chrome/renderer/safe_browsing/test_utils.cc

Issue 2667343006: Componentize safe_browsing [X+1] : move the renderer part to component.
Patch Set: Created 3 years, 10 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/renderer/safe_browsing/test_utils.h"
6
7 #include <map>
8 #include <string>
9
10 #include "chrome/renderer/safe_browsing/features.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12
13 namespace safe_browsing {
14
15 void ExpectFeatureMapsAreEqual(const FeatureMap& first,
16 const FeatureMap& second) {
17 std::map<std::string, double> sorted_first(first.features().begin(),
18 first.features().end());
19 std::map<std::string, double> sorted_second(second.features().begin(),
20 second.features().end());
21 EXPECT_THAT(sorted_first, testing::ContainerEq(sorted_second));
22 }
23
24 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/renderer/safe_browsing/test_utils.h ('k') | chrome/renderer/safe_browsing/threat_dom_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698