| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 | 5 |
| 6 #include <memory> | 6 #include <memory> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "core/dom/Element.h" | 10 #include "core/dom/Element.h" |
| 11 #include "core/testing/DummyPageHolder.h" | 11 #include "core/testing/DummyPageHolder.h" |
| 12 #include "modules/document_metadata/CopylessPasteExtractor.h" | 12 #include "modules/document_metadata/CopylessPasteExtractor.h" |
| 13 #include "platform/json/JSONValues.h" | 13 #include "platform/json/JSONValues.h" |
| 14 #include "public/platform/modules/document_metadata/copyless_paste.mojom-blink.h
" | 14 #include "public/platform/modules/document_metadata/copyless_paste.mojom-blink.h
" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "wtf/text/StringBuilder.h" | |
| 17 | 16 |
| 18 namespace blink { | 17 namespace blink { |
| 19 | 18 |
| 20 namespace { | 19 namespace { |
| 21 | 20 |
| 22 using mojom::document_metadata::blink::Entity; | 21 using mojom::document_metadata::blink::Entity; |
| 23 using mojom::document_metadata::blink::EntityPtr; | 22 using mojom::document_metadata::blink::EntityPtr; |
| 24 using mojom::document_metadata::blink::Property; | 23 using mojom::document_metadata::blink::Property; |
| 25 using mojom::document_metadata::blink::PropertyPtr; | 24 using mojom::document_metadata::blink::PropertyPtr; |
| 26 using mojom::document_metadata::blink::Values; | 25 using mojom::document_metadata::blink::Values; |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 | 825 |
| 827 restaurant->properties.push_back( | 826 restaurant->properties.push_back( |
| 828 createEntityProperty("1", std::move(entity1))); | 827 createEntityProperty("1", std::move(entity1))); |
| 829 | 828 |
| 830 expected->entities.push_back(std::move(restaurant)); | 829 expected->entities.push_back(std::move(restaurant)); |
| 831 EXPECT_EQ(expected, extracted); | 830 EXPECT_EQ(expected, extracted); |
| 832 } | 831 } |
| 833 | 832 |
| 834 } // namespace | 833 } // namespace |
| 835 } // namespace blink | 834 } // namespace blink |
| OLD | NEW |