Commit 3ae96ae
test: make IsolateData per-isolate in cctest
This ensures that we only create one IsolateData for each isolate
inthe cctest, since IsolateData are meant to be per-isolate.
We need to make the isolate and isolate_data static in the
test fixtures as a result, similar to how the event loops and
array buffer allocators are managed in the
NodeZeroIsolateTestFixture but it is fine because gtest ensures
that the Setup() and TearDown() of the fixtures are always run
in order and would never overlap in one process.
PR-URL: #48450
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent f18b287 commit 3ae96aeCopy full SHA for 3ae96ae
File tree
Expand file treeCollapse file tree
5 files changed
+34
-29
lines changedOpen diff view settings
Filter options
- test/cctest
Expand file treeCollapse file tree
5 files changed
+34
-29
lines changedOpen diff view settings
Collapse file
test/cctest/node_test_fixture.cc
Copy file name to clipboardExpand all lines: test/cctest/node_test_fixture.cc+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
| 10 | + |
10 | 11 | |
11 | 12 | |
12 | 13 | |
|
Collapse file
test/cctest/node_test_fixture.h
Copy file name to clipboardExpand all lines: test/cctest/node_test_fixture.h+26-13Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
67 | 67 | |
68 | 68 | |
69 | 69 | |
| 70 | + |
70 | 71 | |
71 | 72 | |
72 | 73 | |
| ||
104 | 105 | |
105 | 106 | |
106 | 107 | |
| 108 | + |
107 | 109 | |
108 | 110 | |
109 | 111 | |
110 | 112 | |
111 | 113 | |
112 | | - |
| 114 | + |
113 | 115 | |
114 | 116 | |
115 | 117 | |
| ||
130 | 132 | |
131 | 133 | |
132 | 134 | |
133 | | - |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
134 | 151 | |
135 | 152 | |
136 | 153 | |
| ||
142 | 159 | |
143 | 160 | |
144 | 161 | |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | 162 | |
150 | 163 | |
151 | | - |
152 | | - |
153 | | - |
154 | | - |
155 | | - |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
156 | 171 | |
157 | 172 | |
158 | 173 | |
159 | 174 | |
160 | 175 | |
161 | | - |
162 | 176 | |
163 | 177 | |
164 | 178 | |
| ||
175 | 189 | |
176 | 190 | |
177 | 191 | |
178 | | - |
179 | 192 | |
180 | 193 | |
181 | 194 | |
|
Collapse file
test/cctest/test_environment.cc
Copy file name to clipboardExpand all lines: test/cctest/test_environment.cc+4-13Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
| 33 | + |
34 | 34 | |
35 | 35 | |
36 | 36 | |
| ||
674 | 674 | |
675 | 675 | |
676 | 676 | |
677 | | - |
678 | | - |
679 | | - |
680 | | - |
681 | | - |
682 | | - |
| 677 | + |
| 678 | + |
683 | 679 | |
684 | 680 | |
685 | 681 | |
| ||
718 | 714 | |
719 | 715 | |
720 | 716 | |
721 | | - |
722 | 717 | |
723 | 718 | |
724 | 719 | |
| ||
733 | 728 | |
734 | 729 | |
735 | 730 | |
736 | | - |
737 | | - |
738 | | - |
739 | 731 | |
740 | 732 | |
741 | 733 | |
742 | | - |
| 734 | + |
743 | 735 | |
744 | 736 | |
745 | 737 | |
746 | 738 | |
747 | 739 | |
748 | 740 | |
749 | | - |
750 | 741 | |
751 | 742 | |
Collapse file
test/cctest/test_node_api.cc
Copy file name to clipboardExpand all lines: test/cctest/test_node_api.cc+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | 22 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
| 23 | + |
24 | 24 | |
25 | 25 | |
26 | 26 | |
|
0 commit comments