Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef PaymentRequestTestBase_h | |
| 6 #define PaymentRequestTestBase_h | |
| 7 | |
| 8 #include "bindings/core/v8/ExceptionState.h" | |
| 9 #include "testing/gtest/include/gtest/gtest.h" | |
| 10 #include "wtf/OwnPtr.h" | |
| 11 #include "wtf/text/WTFString.h" | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class DummyPageHolder; | |
| 16 class ScriptState; | |
| 17 | |
| 18 // A base fixture for PaymentRequest tests. | |
| 19 class PaymentRequestTestBase : public testing::Test { | |
|
haraken
2016/06/09 01:57:59
Can we use ScriptStateForTesting?
please use gerrit instead
2016/06/09 22:36:14
ScriptStateForTesting needs an isolate(), which I
haraken
2016/06/10 00:15:12
You can use v8::Isolate::GetCurrent().
Or if you
please use gerrit instead
2016/06/10 21:18:20
After experimenting, turns out I need a document w
| |
| 20 public: | |
| 21 PaymentRequestTestBase(); | |
| 22 ~PaymentRequestTestBase() override; | |
| 23 | |
| 24 ScriptState* getScriptState(); | |
| 25 ExceptionState& getExceptionState(); | |
| 26 | |
| 27 void setSecurityOrigin(const String&); | |
| 28 | |
| 29 private: | |
| 30 OwnPtr<DummyPageHolder> m_page; | |
| 31 TrackExceptionState m_exceptionState; | |
| 32 }; | |
| 33 | |
| 34 } // namespace blink | |
| 35 | |
| 36 #endif // PaymentRequestTestBase_h | |
| OLD | NEW |