Commit 3a127885 authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

[Code health] Delete two un-used function

Bug: None
Change-Id: Ia4e2d9382b8cc96227975cdced4ea806fcf565e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1792957Reviewed-by: default avatarYi Gu <yigu@chromium.org>
Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Commit-Queue: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694928}
parent 07ce1b7d
...@@ -47,57 +47,6 @@ class PaintWorkletStylePropertyMapTest : public PageTestBase { ...@@ -47,57 +47,6 @@ class PaintWorkletStylePropertyMapTest : public PageTestBase {
waitable_event.Wait(); waitable_event.Wait();
} }
void CheckCustomProperties(const PaintWorkletStylePropertyMap* map,
DummyExceptionStateForTesting& exception_state) {
const CSSStyleValue* foo = map->get(nullptr, "--foo", exception_state);
ASSERT_NE(nullptr, foo);
ASSERT_EQ(CSSStyleValue::kUnknownType, foo->GetType());
EXPECT_FALSE(exception_state.HadException());
EXPECT_EQ(true, map->has(nullptr, "--foo", exception_state));
EXPECT_FALSE(exception_state.HadException());
CSSStyleValueVector fooAll = map->getAll(nullptr, "--foo", exception_state);
EXPECT_EQ(1U, fooAll.size());
ASSERT_NE(nullptr, fooAll[0]);
ASSERT_EQ(CSSStyleValue::kUnknownType, fooAll[0]->GetType());
EXPECT_FALSE(exception_state.HadException());
EXPECT_EQ(nullptr, map->get(nullptr, "--quix", exception_state));
EXPECT_FALSE(exception_state.HadException());
EXPECT_EQ(false, map->has(nullptr, "--quix", exception_state));
EXPECT_FALSE(exception_state.HadException());
EXPECT_EQ(CSSStyleValueVector(),
map->getAll(nullptr, "--quix", exception_state));
EXPECT_FALSE(exception_state.HadException());
}
void CheckNativeProperties(const PaintWorkletStylePropertyMap* map,
DummyExceptionStateForTesting& exception_state) {
map->get(nullptr, "color", exception_state);
EXPECT_FALSE(exception_state.HadException());
map->has(nullptr, "color", exception_state);
EXPECT_FALSE(exception_state.HadException());
map->getAll(nullptr, "color", exception_state);
EXPECT_FALSE(exception_state.HadException());
map->get(nullptr, "align-contents", exception_state);
EXPECT_TRUE(exception_state.HadException());
exception_state.ClearException();
map->has(nullptr, "align-contents", exception_state);
EXPECT_TRUE(exception_state.HadException());
exception_state.ClearException();
map->getAll(nullptr, "align-contents", exception_state);
EXPECT_TRUE(exception_state.HadException());
exception_state.ClearException();
}
void CheckCrossThreadData(base::WaitableEvent* waitable_event, void CheckCrossThreadData(base::WaitableEvent* waitable_event,
scoped_refptr<PaintWorkletInput> input) { scoped_refptr<PaintWorkletInput> input) {
DCHECK(!IsMainThread()); DCHECK(!IsMainThread());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment