Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/html/HTMLLinkElement.h" | 6 #include "core/html/HTMLLinkElement.h" |
| 7 | 7 |
| 8 #include <gtest/gtest.h> | 8 #include <gtest/gtest.h> |
| 9 | 9 |
| 10 using namespace blink; | 10 namespace blink { |
| 11 | |
| 12 namespace { | |
| 13 | 11 |
| 14 class HTMLLinkElementSizesAttributeTest : public testing::Test { | 12 class HTMLLinkElementSizesAttributeTest : public testing::Test { |
| 15 }; | 13 }; |
| 16 | 14 |
| 17 TEST(HTMLLinkElementSizesAttributeTest, parseSizes) | 15 TEST(HTMLLinkElementSizesAttributeTest, parseSizes) |
| 18 { | 16 { |
| 19 AtomicString sizesAttribute = "32x33"; | 17 AtomicString sizesAttribute = "32x33"; |
| 20 Vector<IntSize> sizes; | 18 Vector<IntSize> sizes; |
| 21 HTMLLinkElement::parseSizesAttribute(sizesAttribute, sizes); | 19 HTMLLinkElement::parseSizesAttribute(sizesAttribute, sizes); |
| 22 ASSERT_EQ(1U, sizes.size()); | 20 ASSERT_EQ(1U, sizes.size()); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 67 sizes.clear(); | 65 sizes.clear(); |
| 68 HTMLLinkElement::parseSizesAttribute(sizesAttribute, sizes); | 66 HTMLLinkElement::parseSizesAttribute(sizesAttribute, sizes); |
| 69 ASSERT_EQ(0U, sizes.size()); | 67 ASSERT_EQ(0U, sizes.size()); |
| 70 | 68 |
| 71 sizesAttribute = "32x33, 64x64"; | 69 sizesAttribute = "32x33, 64x64"; |
| 72 sizes.clear(); | 70 sizes.clear(); |
| 73 HTMLLinkElement::parseSizesAttribute(sizesAttribute, sizes); | 71 HTMLLinkElement::parseSizesAttribute(sizesAttribute, sizes); |
| 74 ASSERT_EQ(0U, sizes.size()); | 72 ASSERT_EQ(0U, sizes.size()); |
| 75 } | 73 } |
| 76 | 74 |
| 77 } // namespace | 75 } // namespace blink |
|
kochi
2015/06/10 04:37:48
nit: one space between '//' and 'namespace'?
tkent
2015/06/10 04:50:08
Done.
| |
| OLD | NEW |