OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014, Google Inc. All rights reserved. | 2 * Copyright (c) 2014, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 #include <gmock/gmock.h> | 38 #include <gmock/gmock.h> |
39 #include <gtest/gtest.h> | 39 #include <gtest/gtest.h> |
40 | 40 |
41 using namespace blink; | 41 using namespace blink; |
42 | 42 |
43 namespace { | 43 namespace { |
44 | 44 |
45 class DocumentTest : public ::testing::Test { | 45 class DocumentTest : public ::testing::Test { |
46 protected: | 46 protected: |
47 virtual void SetUp() OVERRIDE; | 47 virtual void SetUp() override; |
48 | 48 |
49 #if ENABLE(OILPAN) | 49 #if ENABLE(OILPAN) |
50 virtual void TearDown() OVERRIDE | 50 virtual void TearDown() override |
51 { | 51 { |
52 Heap::collectAllGarbage(); | 52 Heap::collectAllGarbage(); |
53 } | 53 } |
54 #endif | 54 #endif |
55 | 55 |
56 Document& document() const { return m_dummyPageHolder->document(); } | 56 Document& document() const { return m_dummyPageHolder->document(); } |
57 Page& page() const { return m_dummyPageHolder->page(); } | 57 Page& page() const { return m_dummyPageHolder->page(); } |
58 | 58 |
59 private: | 59 private: |
60 OwnPtr<DummyPageHolder> m_dummyPageHolder; | 60 OwnPtr<DummyPageHolder> m_dummyPageHolder; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 EXPECT_EQ(link, document().linkManifest()); | 206 EXPECT_EQ(link, document().linkManifest()); |
207 link->setAttribute(blink::HTMLNames::typeAttr, "image/gif"); | 207 link->setAttribute(blink::HTMLNames::typeAttr, "image/gif"); |
208 EXPECT_EQ(link, document().linkManifest()); | 208 EXPECT_EQ(link, document().linkManifest()); |
209 link->setAttribute(blink::HTMLNames::sizesAttr, "16x16"); | 209 link->setAttribute(blink::HTMLNames::sizesAttr, "16x16"); |
210 EXPECT_EQ(link, document().linkManifest()); | 210 EXPECT_EQ(link, document().linkManifest()); |
211 link->setAttribute(blink::HTMLNames::mediaAttr, "print"); | 211 link->setAttribute(blink::HTMLNames::mediaAttr, "print"); |
212 EXPECT_EQ(link, document().linkManifest()); | 212 EXPECT_EQ(link, document().linkManifest()); |
213 } | 213 } |
214 | 214 |
215 } // unnamed namespace | 215 } // unnamed namespace |
OLD | NEW |