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

Side by Side Diff: testing/gmock/test/gmock_output_test_golden.txt

Issue 521012: Update gmock and gtest. (Closed)
Patch Set: update readme Created 10 years, 12 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 | « testing/gmock/test/gmock_output_test_.cc ('k') | testing/gmock/test/gmock_test_utils.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ RUN ] GMockOutputTest.ExpectedCall 1 [ RUN ] GMockOutputTest.ExpectedCall
2 2
3 FILE:#: EXPECT_CALL(foo_, Bar2(0, _)) invoked 3 FILE:#: EXPECT_CALL(foo_, Bar2(0, _)) invoked
4 Stack trace: 4 Stack trace:
5 5
6 FILE:#: Expected mock function call. 6 FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar2(0, _))...
7 Function call: Bar2(0, 0) 7 Function call: Bar2(0, 0)
8 Returns: false 8 Returns: false
9 Stack trace: 9 Stack trace:
10 [ OK ] GMockOutputTest.ExpectedCall 10 [ OK ] GMockOutputTest.ExpectedCall
11 [ RUN ] GMockOutputTest.ExpectedCallToVoidFunction 11 [ RUN ] GMockOutputTest.ExpectedCallToVoidFunction
12 12
13 FILE:#: EXPECT_CALL(foo_, Bar3(0, _)) invoked 13 FILE:#: EXPECT_CALL(foo_, Bar3(0, _)) invoked
14 Stack trace: 14 Stack trace:
15 15
16 FILE:#: Expected mock function call. 16 FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar3(0, _))...
17 Function call: Bar3(0, 0) 17 Function call: Bar3(0, 0)
18 Stack trace: 18 Stack trace:
19 [ OK ] GMockOutputTest.ExpectedCallToVoidFunction 19 [ OK ] GMockOutputTest.ExpectedCallToVoidFunction
20 [ RUN ] GMockOutputTest.ExplicitActionsRunOut 20 [ RUN ] GMockOutputTest.ExplicitActionsRunOut
21 21
22 GMOCK WARNING: 22 GMOCK WARNING:
23 FILE:#: Too few actions specified. 23 FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
24 Expected to be called twice, but has only 1 WillOnce(). 24 Expected to be called twice, but has only 1 WillOnce().
25 GMOCK WARNING: 25 GMOCK WARNING:
26 FILE:#: Actions ran out. 26 FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
27 Called 2 times, but only 1 WillOnce() is specified - returning default value. 27 Called 2 times, but only 1 WillOnce() is specified - returning default value.
28 Stack trace: 28 Stack trace:
29 [ OK ] GMockOutputTest.ExplicitActionsRunOut 29 [ OK ] GMockOutputTest.ExplicitActionsRunOut
30 [ RUN ] GMockOutputTest.UnexpectedCall 30 [ RUN ] GMockOutputTest.UnexpectedCall
31 unknown file: Failure 31 unknown file: Failure
32 32
33 Unexpected mock function call - returning default value. 33 Unexpected mock function call - returning default value.
34 Function call: Bar2(1, 0) 34 Function call: Bar2(1, 0)
35 Returns: false 35 Returns: false
36 Google Mock tried the following 1 expectation, but it didn't match: 36 Google Mock tried the following 1 expectation, but it didn't match:
37 37
38 FILE:#: 38 FILE:#: EXPECT_CALL(foo_, Bar2(0, _))...
39 Expected arg #0: is equal to 0 39 Expected arg #0: is equal to 0
40 Actual: 1 40 Actual: 1
41 Expected: to be called once 41 Expected: to be called once
42 Actual: never called - unsatisfied and active 42 Actual: never called - unsatisfied and active
43 [ FAILED ] GMockOutputTest.UnexpectedCall 43 [ FAILED ] GMockOutputTest.UnexpectedCall
44 [ RUN ] GMockOutputTest.UnexpectedCallToVoidFunction 44 [ RUN ] GMockOutputTest.UnexpectedCallToVoidFunction
45 unknown file: Failure 45 unknown file: Failure
46 46
47 Unexpected mock function call - returning directly. 47 Unexpected mock function call - returning directly.
48 Function call: Bar3(1, 0) 48 Function call: Bar3(1, 0)
49 Google Mock tried the following 1 expectation, but it didn't match: 49 Google Mock tried the following 1 expectation, but it didn't match:
50 50
51 FILE:#: 51 FILE:#: EXPECT_CALL(foo_, Bar3(0, _))...
52 Expected arg #0: is equal to 0 52 Expected arg #0: is equal to 0
53 Actual: 1 53 Actual: 1
54 Expected: to be called once 54 Expected: to be called once
55 Actual: never called - unsatisfied and active 55 Actual: never called - unsatisfied and active
56 [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction 56 [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
57 [ RUN ] GMockOutputTest.ExcessiveCall 57 [ RUN ] GMockOutputTest.ExcessiveCall
58 FILE:#: Failure 58 FILE:#: Failure
59 Mock function called more times than expected - returning default value. 59 Mock function called more times than expected - returning default value.
60 Function call: Bar2(0, 1) 60 Function call: Bar2(0, 1)
61 Returns: false 61 Returns: false
(...skipping 23 matching lines...) Expand all
85 Stack trace: 85 Stack trace:
86 [ OK ] GMockOutputTest.UninterestingCallToVoidFunction 86 [ OK ] GMockOutputTest.UninterestingCallToVoidFunction
87 [ RUN ] GMockOutputTest.RetiredExpectation 87 [ RUN ] GMockOutputTest.RetiredExpectation
88 unknown file: Failure 88 unknown file: Failure
89 89
90 Unexpected mock function call - returning default value. 90 Unexpected mock function call - returning default value.
91 Function call: Bar2(1, 1) 91 Function call: Bar2(1, 1)
92 Returns: false 92 Returns: false
93 Google Mock tried the following 2 expectations, but none matched: 93 Google Mock tried the following 2 expectations, but none matched:
94 94
95 FILE:#: tried expectation #0 95 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(_, _))...
96 Expected: the expectation is active 96 Expected: the expectation is active
97 Actual: it is retired 97 Actual: it is retired
98 Expected: to be called once 98 Expected: to be called once
99 Actual: called once - saturated and retired 99 Actual: called once - saturated and retired
100 FILE:#: tried expectation #1 100 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(0, 0))...
101 Expected arg #0: is equal to 0 101 Expected arg #0: is equal to 0
102 Actual: 1 102 Actual: 1
103 Expected arg #1: is equal to 0 103 Expected arg #1: is equal to 0
104 Actual: 1 104 Actual: 1
105 Expected: to be called once 105 Expected: to be called once
106 Actual: never called - unsatisfied and active 106 Actual: never called - unsatisfied and active
107 [ FAILED ] GMockOutputTest.RetiredExpectation 107 [ FAILED ] GMockOutputTest.RetiredExpectation
108 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisite 108 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisite
109 unknown file: Failure 109 unknown file: Failure
110 110
111 Unexpected mock function call - returning default value. 111 Unexpected mock function call - returning default value.
112 Function call: Bar2(1, 0) 112 Function call: Bar2(1, 0)
113 Returns: false 113 Returns: false
114 Google Mock tried the following 2 expectations, but none matched: 114 Google Mock tried the following 2 expectations, but none matched:
115 115
116 FILE:#: tried expectation #0 116 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
117 Expected arg #0: is equal to 0 117 Expected arg #0: is equal to 0
118 Actual: 1 118 Actual: 1
119 Expected: to be called once 119 Expected: to be called once
120 Actual: never called - unsatisfied and active 120 Actual: never called - unsatisfied and active
121 FILE:#: tried expectation #1 121 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
122 Expected: all pre-requisites are satisfied 122 Expected: all pre-requisites are satisfied
123 Actual: the following immediate pre-requisites are not satisfied: 123 Actual: the following immediate pre-requisites are not satisfied:
124 FILE:#: pre-requisite #0 124 FILE:#: pre-requisite #0
125 (end of pre-requisites) 125 (end of pre-requisites)
126 Expected: to be called once 126 Expected: to be called once
127 Actual: never called - unsatisfied and active 127 Actual: never called - unsatisfied and active
128 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite 128 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite
129 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisites 129 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisites
130 unknown file: Failure 130 unknown file: Failure
131 131
132 Unexpected mock function call - returning default value. 132 Unexpected mock function call - returning default value.
133 Function call: Bar2(1, 0) 133 Function call: Bar2(1, 0)
134 Returns: false 134 Returns: false
135 Google Mock tried the following 2 expectations, but none matched: 135 Google Mock tried the following 2 expectations, but none matched:
136 136
137 FILE:#: tried expectation #0 137 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
138 Expected arg #0: is equal to 0 138 Expected arg #0: is equal to 0
139 Actual: 1 139 Actual: 1
140 Expected: to be called once 140 Expected: to be called once
141 Actual: never called - unsatisfied and active 141 Actual: never called - unsatisfied and active
142 FILE:#: tried expectation #1 142 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
143 Expected: all pre-requisites are satisfied 143 Expected: all pre-requisites are satisfied
144 Actual: the following immediate pre-requisites are not satisfied: 144 Actual: the following immediate pre-requisites are not satisfied:
145 FILE:#: pre-requisite #0 145 FILE:#: pre-requisite #0
146 FILE:#: pre-requisite #1 146 FILE:#: pre-requisite #1
147 (end of pre-requisites) 147 (end of pre-requisites)
148 Expected: to be called once 148 Expected: to be called once
149 Actual: never called - unsatisfied and active 149 Actual: never called - unsatisfied and active
150 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites 150 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites
151 [ RUN ] GMockOutputTest.UnsatisfiedWith
152 FILE:#: Failure
153 Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(_, _))...
154 Expected args: are a pair (x, y) where x >= y
155 Expected: to be called once
156 Actual: never called - unsatisfied and active
157 [ FAILED ] GMockOutputTest.UnsatisfiedWith
151 [ RUN ] GMockOutputTest.UnsatisfiedExpectation 158 [ RUN ] GMockOutputTest.UnsatisfiedExpectation
152 FILE:#: Failure 159 FILE:#: Failure
153 Actual function call count doesn't match this expectation. 160 Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(0, _))...
154 Expected: to be called twice 161 Expected: to be called twice
155 Actual: called once - unsatisfied and active 162 Actual: called once - unsatisfied and active
156 FILE:#: Failure 163 FILE:#: Failure
157 Actual function call count doesn't match this expectation. 164 Actual function call count doesn't match EXPECT_CALL(foo_, Bar(_, _, _))...
158 Expected: to be called once 165 Expected: to be called once
159 Actual: never called - unsatisfied and active 166 Actual: never called - unsatisfied and active
160 [ FAILED ] GMockOutputTest.UnsatisfiedExpectation 167 [ FAILED ] GMockOutputTest.UnsatisfiedExpectation
161 [ RUN ] GMockOutputTest.MismatchArguments 168 [ RUN ] GMockOutputTest.MismatchArguments
162 unknown file: Failure 169 unknown file: Failure
163 170
164 Unexpected mock function call - returning default value. 171 Unexpected mock function call - returning default value.
165 Function call: Bar(@0x# "Ho", 0, -0.1) 172 Function call: Bar(@0x# "Ho", 0, -0.1)
166 Returns: '\0' 173 Returns: '\0'
167 Google Mock tried the following 1 expectation, but it didn't match: 174 Google Mock tried the following 1 expectation, but it didn't match:
168 175
169 FILE:#: 176 FILE:#: EXPECT_CALL(foo_, Bar(Ref(s), _, Ge(0)))...
170 Expected arg #0: references the variable @0x# "Hi" 177 Expected arg #0: references the variable @0x# "Hi"
171 Actual: "Ho" (is located @0x#) 178 Actual: "Ho" (is located @0x#)
172 Expected arg #2: is greater than or equal to 0 179 Expected arg #2: is greater than or equal to 0
173 Actual: -0.1 180 Actual: -0.1
174 Expected: to be called once 181 Expected: to be called once
175 Actual: never called - unsatisfied and active 182 Actual: never called - unsatisfied and active
176 [ FAILED ] GMockOutputTest.MismatchArguments 183 [ FAILED ] GMockOutputTest.MismatchArguments
177 [ RUN ] GMockOutputTest.MismatchWith 184 [ RUN ] GMockOutputTest.MismatchWith
178 unknown file: Failure 185 unknown file: Failure
179 186
180 Unexpected mock function call - returning default value. 187 Unexpected mock function call - returning default value.
181 Function call: Bar2(2, 3) 188 Function call: Bar2(2, 3)
182 Returns: false 189 Returns: false
183 Google Mock tried the following 1 expectation, but it didn't match: 190 Google Mock tried the following 1 expectation, but it didn't match:
184 191
185 FILE:#: 192 FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
186 Expected args: are a pair (x, y) where x >= y 193 Expected args: are a pair (x, y) where x >= y
187 Actual: don't match 194 Actual: don't match
188 Expected: to be called once 195 Expected: to be called once
189 Actual: never called - unsatisfied and active 196 Actual: never called - unsatisfied and active
190 [ FAILED ] GMockOutputTest.MismatchWith 197 [ FAILED ] GMockOutputTest.MismatchWith
191 [ RUN ] GMockOutputTest.MismatchArgumentsAndWith 198 [ RUN ] GMockOutputTest.MismatchArgumentsAndWith
192 unknown file: Failure 199 unknown file: Failure
193 200
194 Unexpected mock function call - returning default value. 201 Unexpected mock function call - returning default value.
195 Function call: Bar2(1, 3) 202 Function call: Bar2(1, 3)
196 Returns: false 203 Returns: false
197 Google Mock tried the following 1 expectation, but it didn't match: 204 Google Mock tried the following 1 expectation, but it didn't match:
198 205
199 FILE:#: 206 FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
200 Expected arg #0: is greater than or equal to 2 207 Expected arg #0: is greater than or equal to 2
201 Actual: 1 208 Actual: 1
202 Expected args: are a pair (x, y) where x >= y 209 Expected args: are a pair (x, y) where x >= y
203 Actual: don't match 210 Actual: don't match
204 Expected: to be called once 211 Expected: to be called once
205 Actual: never called - unsatisfied and active 212 Actual: never called - unsatisfied and active
206 [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith 213 [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith
207 [ RUN ] GMockOutputTest.UnexpectedCallWithDefaultAction 214 [ RUN ] GMockOutputTest.UnexpectedCallWithDefaultAction
208 unknown file: Failure 215 unknown file: Failure
209 216
210 Unexpected mock function call - taking default action specified at: 217 Unexpected mock function call - taking default action specified at:
211 FILE:#: 218 FILE:#:
212 Function call: Bar2(1, 0) 219 Function call: Bar2(1, 0)
213 Returns: false 220 Returns: false
214 Google Mock tried the following 1 expectation, but it didn't match: 221 Google Mock tried the following 1 expectation, but it didn't match:
215 222
216 FILE:#: 223 FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
217 Expected arg #0: is equal to 2 224 Expected arg #0: is equal to 2
218 Actual: 1 225 Actual: 1
219 Expected arg #1: is equal to 2 226 Expected arg #1: is equal to 2
220 Actual: 0 227 Actual: 0
221 Expected: to be called once 228 Expected: to be called once
222 Actual: never called - unsatisfied and active 229 Actual: never called - unsatisfied and active
223 unknown file: Failure 230 unknown file: Failure
224 231
225 Unexpected mock function call - taking default action specified at: 232 Unexpected mock function call - taking default action specified at:
226 FILE:#: 233 FILE:#:
227 Function call: Bar2(0, 0) 234 Function call: Bar2(0, 0)
228 Returns: true 235 Returns: true
229 Google Mock tried the following 1 expectation, but it didn't match: 236 Google Mock tried the following 1 expectation, but it didn't match:
230 237
231 FILE:#: 238 FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
232 Expected arg #0: is equal to 2 239 Expected arg #0: is equal to 2
233 Actual: 0 240 Actual: 0
234 Expected arg #1: is equal to 2 241 Expected arg #1: is equal to 2
235 Actual: 0 242 Actual: 0
236 Expected: to be called once 243 Expected: to be called once
237 Actual: never called - unsatisfied and active 244 Actual: never called - unsatisfied and active
238 [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction 245 [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction
239 [ RUN ] GMockOutputTest.ExcessiveCallWithDefaultAction 246 [ RUN ] GMockOutputTest.ExcessiveCallWithDefaultAction
240 FILE:#: Failure 247 FILE:#: Failure
241 Mock function called more times than expected - taking default action specified at: 248 Mock function called more times than expected - taking default action specified at:
(...skipping 22 matching lines...) Expand all
264 GMOCK WARNING: 271 GMOCK WARNING:
265 Uninteresting mock function call - taking default action specified at: 272 Uninteresting mock function call - taking default action specified at:
266 FILE:#: 273 FILE:#:
267 Function call: Bar2(1, 1) 274 Function call: Bar2(1, 1)
268 Returns: false 275 Returns: false
269 Stack trace: 276 Stack trace:
270 [ OK ] GMockOutputTest.UninterestingCallWithDefaultAction 277 [ OK ] GMockOutputTest.UninterestingCallWithDefaultAction
271 [ RUN ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction 278 [ RUN ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
272 279
273 GMOCK WARNING: 280 GMOCK WARNING:
274 FILE:#: Too few actions specified. 281 FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
275 Expected to be called twice, but has only 1 WillOnce(). 282 Expected to be called twice, but has only 1 WillOnce().
276 GMOCK WARNING: 283 GMOCK WARNING:
277 FILE:#: Actions ran out. 284 FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
278 Called 2 times, but only 1 WillOnce() is specified - taking default action speci fied at: 285 Called 2 times, but only 1 WillOnce() is specified - taking default action speci fied at:
279 FILE:#: 286 FILE:#:
280 Stack trace: 287 Stack trace:
281 [ OK ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction 288 [ OK ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
282 [ RUN ] GMockOutputTest.CatchesLeakedMocks 289 [ RUN ] GMockOutputTest.CatchesLeakedMocks
283 [ OK ] GMockOutputTest.CatchesLeakedMocks 290 [ OK ] GMockOutputTest.CatchesLeakedMocks
284 [ FAILED ] GMockOutputTest.UnexpectedCall 291 [ FAILED ] GMockOutputTest.UnexpectedCall
285 [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction 292 [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
286 [ FAILED ] GMockOutputTest.ExcessiveCall 293 [ FAILED ] GMockOutputTest.ExcessiveCall
287 [ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction 294 [ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction
288 [ FAILED ] GMockOutputTest.RetiredExpectation 295 [ FAILED ] GMockOutputTest.RetiredExpectation
289 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite 296 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite
290 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites 297 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites
298 [ FAILED ] GMockOutputTest.UnsatisfiedWith
291 [ FAILED ] GMockOutputTest.UnsatisfiedExpectation 299 [ FAILED ] GMockOutputTest.UnsatisfiedExpectation
292 [ FAILED ] GMockOutputTest.MismatchArguments 300 [ FAILED ] GMockOutputTest.MismatchArguments
293 [ FAILED ] GMockOutputTest.MismatchWith 301 [ FAILED ] GMockOutputTest.MismatchWith
294 [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith 302 [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith
295 [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction 303 [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction
296 [ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction 304 [ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction
297 305
298 306
299 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @ 0x#. 307 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @ 0x#.
300 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @ 0x#. 308 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @ 0x#.
301 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @ 0x#. 309 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @ 0x#.
302 ERROR: 3 leaked mock objects found at program exit. 310 ERROR: 3 leaked mock objects found at program exit.
OLDNEW
« no previous file with comments | « testing/gmock/test/gmock_output_test_.cc ('k') | testing/gmock/test/gmock_test_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698