Index: third_party/WebKit/Source/core/css/cssom/CSSResourceValueTest.cpp |
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSResourceValueTest.cpp b/third_party/WebKit/Source/core/css/cssom/CSSResourceValueTest.cpp |
index ddc1cb16a2cfc2c4e5f963d785940c1e36cdeff6..282fb217804c14c7aa87f975d83eb1b225922b02 100644 |
--- a/third_party/WebKit/Source/core/css/cssom/CSSResourceValueTest.cpp |
+++ b/third_party/WebKit/Source/core/css/cssom/CSSResourceValueTest.cpp |
@@ -12,25 +12,28 @@ namespace { |
class FakeCSSResourceValue : public CSSResourceValue { |
public: |
- FakeCSSResourceValue(Resource::Status status) : m_status(status) {} |
- Resource::Status status() const override { return m_status; } |
+ FakeCSSResourceValue(ResourceStatus status) : m_status(status) {} |
+ ResourceStatus status() const override { return m_status; } |
CSSValue* toCSSValue() const override { return nullptr; } |
StyleValueType type() const override { return Unknown; } |
private: |
- Resource::Status m_status; |
+ ResourceStatus m_status; |
}; |
} // namespace |
TEST(CSSResourceValueTest, TestStatus) { |
- EXPECT_EQ((new FakeCSSResourceValue(Resource::NotStarted))->state(), |
+ EXPECT_EQ((new FakeCSSResourceValue(ResourceStatus::NotStarted))->state(), |
"unloaded"); |
- EXPECT_EQ((new FakeCSSResourceValue(Resource::Pending))->state(), "loading"); |
- EXPECT_EQ((new FakeCSSResourceValue(Resource::Cached))->state(), "loaded"); |
- EXPECT_EQ((new FakeCSSResourceValue(Resource::LoadError))->state(), "error"); |
- EXPECT_EQ((new FakeCSSResourceValue(Resource::DecodeError))->state(), |
+ EXPECT_EQ((new FakeCSSResourceValue(ResourceStatus::Pending))->state(), |
+ "loading"); |
+ EXPECT_EQ((new FakeCSSResourceValue(ResourceStatus::Cached))->state(), |
+ "loaded"); |
+ EXPECT_EQ((new FakeCSSResourceValue(ResourceStatus::LoadError))->state(), |
+ "error"); |
+ EXPECT_EQ((new FakeCSSResourceValue(ResourceStatus::DecodeError))->state(), |
"error"); |
} |