| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/dom_distiller/core/article_entry.h" | 5 #include "components/dom_distiller/core/article_entry.h" |
| 6 | 6 |
| 7 #include "sync/protocol/sync.pb.h" | 7 #include "components/sync/protocol/sync.pb.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 using sync_pb::EntitySpecifics; | 10 using sync_pb::EntitySpecifics; |
| 11 using sync_pb::ArticlePage; | 11 using sync_pb::ArticlePage; |
| 12 using sync_pb::ArticleSpecifics; | 12 using sync_pb::ArticleSpecifics; |
| 13 using testing::AssertionResult; | 13 using testing::AssertionResult; |
| 14 using testing::AssertionSuccess; | 14 using testing::AssertionSuccess; |
| 15 using testing::AssertionFailure; | 15 using testing::AssertionFailure; |
| 16 | 16 |
| 17 namespace dom_distiller { | 17 namespace dom_distiller { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 EXPECT_FALSE(AreEntriesEqual(left, right)); | 55 EXPECT_FALSE(AreEntriesEqual(left, right)); |
| 56 | 56 |
| 57 right = left; | 57 right = left; |
| 58 EXPECT_TRUE(AreEntriesEqual(left, right)); | 58 EXPECT_TRUE(AreEntriesEqual(left, right)); |
| 59 | 59 |
| 60 *right.add_pages() = right_page; | 60 *right.add_pages() = right_page; |
| 61 EXPECT_FALSE(AreEntriesEqual(left, right)); | 61 EXPECT_FALSE(AreEntriesEqual(left, right)); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace dom_distiller | 64 } // namespace dom_distiller |
| OLD | NEW |