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

Side by Side Diff: chrome/renderer/safe_browsing/threat_dom_details_browsertest.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
« no previous file with comments | « chrome/renderer/safe_browsing/threat_dom_details.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/safe_browsing/threat_dom_details.h" 5 #include "components/safe_browsing/renderer/threat_dom_details.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "chrome/test/base/chrome_render_view_test.h" 10 #include "chrome/test/base/chrome_render_view_test.h"
11 #include "components/safe_browsing/common/safebrowsing_messages.h" 11 #include "components/safe_browsing/common/safebrowsing_messages.h"
12 #include "content/public/renderer/render_view.h" 12 #include "content/public/renderer/render_view.h"
13 #include "net/base/escape.h" 13 #include "net/base/escape.h"
14 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 14 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
15 #include "ui/native_theme/native_theme_switches.h" 15 #include "ui/native_theme/native_theme_switches.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // The element nodes should all have node IDs. 168 // The element nodes should all have node IDs.
169 for (size_t i = 0; i < params.size() - 1; ++i) { 169 for (size_t i = 0; i < params.size() - 1; ++i) {
170 auto& param = params[i]; 170 auto& param = params[i];
171 const int expected_id = i + 1; 171 const int expected_id = i + 1;
172 EXPECT_EQ(expected_id, param.node_id); 172 EXPECT_EQ(expected_id, param.node_id);
173 EXPECT_EQ(0, param.parent_node_id); 173 EXPECT_EQ(0, param.parent_node_id);
174 EXPECT_TRUE(param.child_node_ids.empty()); 174 EXPECT_TRUE(param.child_node_ids.empty());
175 } 175 }
176 } 176 }
177 } 177 }
OLDNEW
« no previous file with comments | « chrome/renderer/safe_browsing/threat_dom_details.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698