Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
+dtapuska@ for third_party/blink
+gab@ for base/
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
blink lgtm % nits
base::test::TracingEnvironment tracing_environment_;
No trailing underscore
base::test::TracingEnvironment tracing_environment;
private:
trailing underscore on variable name too since it is a member variable.
base::test::TracingEnvironment tracing_environment_;
No trailing underscore for variable in this scope.
base::test::TracingEnvironment tracing_environment_;
Can this be moved into the private section?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Owners-Override | +1 |
LGTM w/ comment, and O-O for trivial things outside //base
TEST_P(PaintAndRasterInvalidationTest, TrackingForTracing) {
Doesn't this fixture already have a `TracingEnvironment` added in its .h? Why does the `ScopedEnablePaintInvalidationTracing` also need one?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +1 |
base::test::TracingEnvironment tracing_environment_;
Etienne Pierre-DorayNo trailing underscore
Done
private:
trailing underscore on variable name too since it is a member variable.
N/A
TEST_P(PaintAndRasterInvalidationTest, TrackingForTracing) {
Doesn't this fixture already have a `TracingEnvironment` added in its .h? Why does the `ScopedEnablePaintInvalidationTracing` also need one?
Correct, I removed the one in ScopedEnablePaintInvalidationTracing.
No trailing underscore for variable in this scope.
Done
Can this be moved into the private section?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
21 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: third_party/blink/renderer/core/paint/paint_and_raster_invalidation_test.cc
Insertions: 0, Deletions: 2.
@@ -92,8 +92,6 @@
trace_event::EnableTracing(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"));
}
~ScopedEnablePaintInvalidationTracing() { trace_event::DisableTracing(); }
-
- base::test::TracingEnvironment tracing_environment;
};
TEST_P(PaintAndRasterInvalidationTest, TrackingForTracing) {
```
```
The name of the file: third_party/blink/renderer/core/paint/paint_layer_painter_test.cc
Insertions: 1, Deletions: 1.
@@ -829,7 +829,7 @@
}
TEST_P(PaintLayerPainterTest, DevtoolsPaintTraceEvents) {
- base::test::TracingEnvironment tracing_environment_;
+ base::test::TracingEnvironment tracing_environment;
SetBodyInnerHTML(R"HTML(
<div id=scroller style="width: 400px; height: 400px; overflow-y: scroll;
position: relative">
```
```
The name of the file: third_party/blink/renderer/core/css/element_rule_collector_test.cc
Insertions: 1, Deletions: 1.
@@ -736,7 +736,7 @@
const StyleRule* rule);
TEST_F(ElementRuleCollectorTest, FindStyleSheet) {
- base::test::TracingEnvironment tracing_environment_;
+ base::test::TracingEnvironment tracing_environment;
trace_analyzer::Start(
TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"));
InvalidationSetToSelectorMap::StartOrStopTrackingIfNeeded(
```
```
The name of the file: third_party/blink/renderer/core/paint/timing/image_paint_timing_detector_test.cc
Insertions: 1, Deletions: 1.
@@ -287,7 +287,6 @@
}
test::TaskEnvironment task_environment_;
- base::test::TracingEnvironment tracing_environment_;
scoped_refptr<base::TestMockTimeTaskRunner> test_task_runner_;
frame_test_helpers::WebViewHelper web_view_helper_;
@@ -315,6 +314,7 @@
return original_image_content;
}
+ base::test::TracingEnvironment tracing_environment_;
MockPaintTimingCallbackManager::CallbackQueue callback_queue_;
Persistent<MockPaintTimingCallbackManager> mock_callback_manager_;
Persistent<MockPaintTimingCallbackManager> child_mock_callback_manager_;
```
[tracing] Improve test::TracingEnvironment
This CL makes test::TracingEnvironment better isolated.
TraceLog::SetEnabled is now stricter about being test only,
and doesn't leave tracing initialized, forcing TracingEnvironment
to be used in all tests that run tracing, thus a big
part of this CL is adding missing base::test::TracingEnvironment.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |