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

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

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698