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

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

Issue 2367663002: [WIP] Attempt to move everything cssom into a cssom namespace (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 #include "core/css/cssom/CSSResourceValue.h" 5 #include "core/css/cssom/CSSResourceValue.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace blink { 9 namespace blink {
10 namespace cssom {
10 11
11 namespace { 12 namespace {
12 13
13 class FakeCSSResourceValue : public CSSResourceValue { 14 class FakeCSSResourceValue : public CSSResourceValue {
14 public: 15 public:
15 FakeCSSResourceValue(Resource::Status status) 16 FakeCSSResourceValue(Resource::Status status)
16 : m_status(status) 17 : m_status(status)
17 { 18 {
18 } 19 }
19 20
(...skipping 10 matching lines...) Expand all
30 { 31 {
31 EXPECT_EQ((new FakeCSSResourceValue(Resource::NotStarted))->state(), "unload ed"); 32 EXPECT_EQ((new FakeCSSResourceValue(Resource::NotStarted))->state(), "unload ed");
32 EXPECT_EQ((new FakeCSSResourceValue(Resource::Pending))->state(), "loading") ; 33 EXPECT_EQ((new FakeCSSResourceValue(Resource::Pending))->state(), "loading") ;
33 EXPECT_EQ((new FakeCSSResourceValue(Resource::Cached))->state(), "loaded"); 34 EXPECT_EQ((new FakeCSSResourceValue(Resource::Cached))->state(), "loaded");
34 EXPECT_EQ((new FakeCSSResourceValue(Resource::LoadError))->state(), "error") ; 35 EXPECT_EQ((new FakeCSSResourceValue(Resource::LoadError))->state(), "error") ;
35 EXPECT_EQ((new FakeCSSResourceValue(Resource::DecodeError))->state(), "error "); 36 EXPECT_EQ((new FakeCSSResourceValue(Resource::DecodeError))->state(), "error ");
36 } 37 }
37 38
38 } // namespace 39 } // namespace
39 40
41 } // namespace cssom
40 } // namespace blink 42 } // namespace blink
43
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSResourceValue.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSRotation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698