Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc

Issue 2712513004: Use a qualified path for grit-generated headers in components/ (Closed)
Patch Set: more checkdeps Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/content/browser/distiller_page_web_contents.h " 5 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h "
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" 18 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h"
19 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h" 19 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h"
20 #include "components/dom_distiller/core/distiller_page.h" 20 #include "components/dom_distiller/core/distiller_page.h"
21 #include "components/dom_distiller/core/proto/distilled_article.pb.h" 21 #include "components/dom_distiller/core/proto/distilled_article.pb.h"
22 #include "components/dom_distiller/core/proto/distilled_page.pb.h" 22 #include "components/dom_distiller/core/proto/distilled_page.pb.h"
23 #include "components/dom_distiller/core/viewer.h" 23 #include "components/dom_distiller/core/viewer.h"
24 #include "components/strings/grit/components_strings.h"
24 #include "content/public/browser/browser_context.h" 25 #include "content/public/browser/browser_context.h"
25 #include "content/public/browser/navigation_controller.h" 26 #include "content/public/browser/navigation_controller.h"
26 #include "content/public/browser/navigation_handle.h" 27 #include "content/public/browser/navigation_handle.h"
27 #include "content/public/browser/render_frame_host.h" 28 #include "content/public/browser/render_frame_host.h"
28 #include "content/public/browser/web_contents_observer.h" 29 #include "content/public/browser/web_contents_observer.h"
29 #include "content/public/common/isolated_world_ids.h" 30 #include "content/public/common/isolated_world_ids.h"
30 #include "content/public/test/content_browser_test.h" 31 #include "content/public/test/content_browser_test.h"
31 #include "content/shell/browser/shell.h" 32 #include "content/shell/browser/shell.h"
32 #include "grit/components_strings.h"
33 #include "net/test/embedded_test_server/embedded_test_server.h" 33 #include "net/test/embedded_test_server/embedded_test_server.h"
34 #include "testing/gmock/include/gmock/gmock.h" 34 #include "testing/gmock/include/gmock/gmock.h"
35 #include "third_party/dom_distiller_js/dom_distiller.pb.h" 35 #include "third_party/dom_distiller_js/dom_distiller.pb.h"
36 #include "ui/base/l10n/l10n_util.h" 36 #include "ui/base/l10n/l10n_util.h"
37 #include "ui/base/resource/resource_bundle.h" 37 #include "ui/base/resource/resource_bundle.h"
38 38
39 using content::ContentBrowserTest; 39 using content::ContentBrowserTest;
40 using testing::ContainsRegex; 40 using testing::ContainsRegex;
41 using testing::HasSubstr; 41 using testing::HasSubstr;
42 using testing::Not; 42 using testing::Not;
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 ASSERT_TRUE(js_result_); 519 ASSERT_TRUE(js_result_);
520 ASSERT_TRUE(js_result_->GetAsDictionary(&dict)); 520 ASSERT_TRUE(js_result_->GetAsDictionary(&dict));
521 521
522 ASSERT_TRUE(dict->HasKey("success")); 522 ASSERT_TRUE(dict->HasKey("success"));
523 bool success; 523 bool success;
524 ASSERT_TRUE(dict->GetBoolean("success", &success)); 524 ASSERT_TRUE(dict->GetBoolean("success", &success));
525 EXPECT_TRUE(success); 525 EXPECT_TRUE(success);
526 } 526 }
527 527
528 } // namespace dom_distiller 528 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698