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 "base/memory/weak_ptr.h" | 5 #include "base/memory/weak_ptr.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "build/build_config.h" |
10 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" | 11 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" |
11 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h
" | 12 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h
" |
12 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser
ver.h" | 13 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser
ver.h" |
13 #include "components/dom_distiller/core/distiller_page.h" | 14 #include "components/dom_distiller/core/distiller_page.h" |
14 #include "components/dom_distiller/core/proto/distilled_article.pb.h" | 15 #include "components/dom_distiller/core/proto/distilled_article.pb.h" |
15 #include "components/dom_distiller/core/proto/distilled_page.pb.h" | 16 #include "components/dom_distiller/core/proto/distilled_page.pb.h" |
16 #include "components/dom_distiller/core/viewer.h" | 17 #include "components/dom_distiller/core/viewer.h" |
17 #include "content/public/browser/browser_context.h" | 18 #include "content/public/browser/browser_context.h" |
18 #include "content/public/browser/navigation_controller.h" | 19 #include "content/public/browser/navigation_controller.h" |
19 #include "content/public/browser/render_frame_host.h" | 20 #include "content/public/browser/render_frame_host.h" |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 ASSERT_TRUE(js_result_); | 516 ASSERT_TRUE(js_result_); |
516 ASSERT_TRUE(js_result_->GetAsDictionary(&dict)); | 517 ASSERT_TRUE(js_result_->GetAsDictionary(&dict)); |
517 | 518 |
518 ASSERT_TRUE(dict->HasKey("success")); | 519 ASSERT_TRUE(dict->HasKey("success")); |
519 bool success; | 520 bool success; |
520 ASSERT_TRUE(dict->GetBoolean("success", &success)); | 521 ASSERT_TRUE(dict->GetBoolean("success", &success)); |
521 EXPECT_TRUE(success); | 522 EXPECT_TRUE(success); |
522 } | 523 } |
523 | 524 |
524 } // namespace dom_distiller | 525 } // namespace dom_distiller |
OLD | NEW |