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

Side by Side Diff: third_party/WebKit/Source/core/streams/ReadableStreamOperationsTest.cpp

Issue 1853743005: Oilpan: Remove WillBe types (part 13) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "core/streams/ReadableStreamOperations.h" 5 #include "core/streams/ReadableStreamOperations.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptFunction.h" 8 #include "bindings/core/v8/ScriptFunction.h"
9 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/ScriptValue.h" 10 #include "bindings/core/v8/ScriptValue.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 ScriptValue r = eval(s); 166 ScriptValue r = eval(s);
167 if (block.HasCaught()) { 167 if (block.HasCaught()) {
168 ADD_FAILURE() << toCoreString(block.Exception()->ToString(isolate()) ).utf8().data(); 168 ADD_FAILURE() << toCoreString(block.Exception()->ToString(isolate()) ).utf8().data();
169 block.ReThrow(); 169 block.ReThrow();
170 } 170 }
171 return r; 171 return r;
172 } 172 }
173 173
174 V8TestingScope m_scope; 174 V8TestingScope m_scope;
175 v8::TryCatch m_block; 175 v8::TryCatch m_block;
176 RefPtrWillBePersistent<Document> m_document; 176 Persistent<Document> m_document;
177 }; 177 };
178 178
179 TEST_F(ReadableStreamOperationsTest, IsReadableStream) 179 TEST_F(ReadableStreamOperationsTest, IsReadableStream)
180 { 180 {
181 EXPECT_FALSE(ReadableStreamOperations::isReadableStream(getScriptState(), Sc riptValue(getScriptState(), v8::Undefined(isolate())))); 181 EXPECT_FALSE(ReadableStreamOperations::isReadableStream(getScriptState(), Sc riptValue(getScriptState(), v8::Undefined(isolate()))));
182 EXPECT_FALSE(ReadableStreamOperations::isReadableStream(getScriptState(), Sc riptValue::createNull(getScriptState()))); 182 EXPECT_FALSE(ReadableStreamOperations::isReadableStream(getScriptState(), Sc riptValue::createNull(getScriptState())));
183 EXPECT_FALSE(ReadableStreamOperations::isReadableStream(getScriptState(), Sc riptValue(getScriptState(), v8::Object::New(isolate())))); 183 EXPECT_FALSE(ReadableStreamOperations::isReadableStream(getScriptState(), Sc riptValue(getScriptState(), v8::Object::New(isolate()))));
184 ScriptValue stream = evalWithPrintingError("new ReadableStream()"); 184 ScriptValue stream = evalWithPrintingError("new ReadableStream()");
185 EXPECT_FALSE(stream.isEmpty()); 185 EXPECT_FALSE(stream.isEmpty());
186 EXPECT_TRUE(ReadableStreamOperations::isReadableStream(getScriptState(), str eam)); 186 EXPECT_TRUE(ReadableStreamOperations::isReadableStream(getScriptState(), str eam));
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 331
332 EXPECT_TRUE(it3->isSet()); 332 EXPECT_TRUE(it3->isSet());
333 EXPECT_TRUE(it3->isValid()); 333 EXPECT_TRUE(it3->isValid());
334 EXPECT_TRUE(it3->isDone()); 334 EXPECT_TRUE(it3->isDone());
335 } 335 }
336 336
337 } // namespace 337 } // namespace
338 338
339 } // namespace blink 339 } // namespace blink
340 340
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698