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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSResourceValueTest.cpp

Issue 2642383003: Replace Resource::Status with ResourceStatus (Closed)
Patch Set: Rebase. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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");
}

Powered by Google App Engine
This is Rietveld 408576698