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

Side by Side Diff: Source/core/html/HTMLLinkElementSizesAttributeTest.cpp

Issue 1171323003: Fix unit test style in core/{dom,editing,html}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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.
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormControlElementTest.cpp ('k') | Source/core/html/HTMLSelectElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698