Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #ifndef EditingTestBase_h | 5 #ifndef EditingTestBase_h |
| 6 #define EditingTestBase_h | 6 #define EditingTestBase_h |
| 7 | 7 |
| 8 #include "core/editing/Position.h" | 8 #include "core/editing/Position.h" |
| 9 #include "wtf/Forward.h" | 9 #include "wtf/Forward.h" |
| 10 #include <gtest/gtest.h> | 10 #include <gtest/gtest.h> |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class DummyPageHolder; | 14 class DummyPageHolder; |
| 15 | 15 |
| 16 class EditingTestBase : public ::testing::Test { | 16 class EditingTestBase : public ::testing::Test { |
| 17 USING_FAST_MALLOC(EditingTestBase); | 17 USING_FAST_MALLOC(EditingTestBase); |
| 18 protected: | 18 protected: |
| 19 EditingTestBase(); | 19 EditingTestBase(); |
| 20 ~EditingTestBase() override; | 20 ~EditingTestBase() override; |
| 21 | 21 |
| 22 void SetUp() override; | 22 void SetUp() override; |
| 23 | 23 |
| 24 Document& document() const; | 24 Document& document() const; |
| 25 DummyPageHolder& dummyPageHolder() const { return *m_dummyPageHolder; } | 25 DummyPageHolder& dummyPageHolder() const { return *m_dummyPageHolder; } |
| 26 | 26 |
| 27 static PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRootForElementWithIDAn dSetInnerHTML(TreeScope&, const char* hostElementID, const char* shadowRootConte nt); | 27 static PassRefPtrWillBeRawPtr<ShadowRoot> createShadowRootForElementWithIDAn dSetInnerHTML(TreeScope&, const char* hostElementID, const char* shadowRootConte nt); |
| 28 | 28 |
| 29 void setBodyContent(const char*); | 29 void setBodyContent(const std::string&); |
|
yosin_UTC9
2016/03/25 04:13:30
Good! (^_^)b
BTW, I'm not sure why PRESUBMIT comp
Seigo Nonaka
2016/03/25 05:11:21
Yeah, it doesn't warn about it. Fixed by adding in
| |
| 30 PassRefPtrWillBeRawPtr<ShadowRoot> setShadowContent(const char* shadowConten t, const char* shadowHostId); | 30 PassRefPtrWillBeRawPtr<ShadowRoot> setShadowContent(const char* shadowConten t, const char* shadowHostId); |
| 31 void updateLayoutAndStyleForPainting(); | 31 void updateLayoutAndStyleForPainting(); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 OwnPtr<DummyPageHolder> m_dummyPageHolder; | 34 OwnPtr<DummyPageHolder> m_dummyPageHolder; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace blink | 37 } // namespace blink |
| 38 | 38 |
| 39 #endif // EditingTestBase_h | 39 #endif // EditingTestBase_h |
| OLD | NEW |