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/task_tracker.h" | 5 #include "components/dom_distiller/core/task_tracker.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
| 9 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "components/dom_distiller/core/article_distillation_update.h" | 11 #include "components/dom_distiller/core/article_distillation_update.h" |
11 #include "components/dom_distiller/core/article_entry.h" | 12 #include "components/dom_distiller/core/article_entry.h" |
12 #include "components/dom_distiller/core/distilled_content_store.h" | 13 #include "components/dom_distiller/core/distilled_content_store.h" |
13 #include "components/dom_distiller/core/fake_distiller.h" | 14 #include "components/dom_distiller/core/fake_distiller.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 using testing::Return; | 17 using testing::Return; |
17 using testing::_; | 18 using testing::_; |
18 | 19 |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 new DistilledArticleProto(distilled_article))); | 406 new DistilledArticleProto(distilled_article))); |
406 base::RunLoop().RunUntilIdle(); | 407 base::RunLoop().RunUntilIdle(); |
407 | 408 |
408 ASSERT_EQ(stored_distilled_article.SerializeAsString(), | 409 ASSERT_EQ(stored_distilled_article.SerializeAsString(), |
409 distilled_article.SerializeAsString()); | 410 distilled_article.SerializeAsString()); |
410 EXPECT_FALSE(cancel_callback.Cancelled()); | 411 EXPECT_FALSE(cancel_callback.Cancelled()); |
411 } | 412 } |
412 | 413 |
413 } // namespace test | 414 } // namespace test |
414 } // namespace dom_distiller | 415 } // namespace dom_distiller |
OLD | NEW |