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

Side by Side Diff: content/renderer/dom_serializer_browsertest.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <stddef.h>
6 #include <stdint.h>
7
5 #include "base/bind.h" 8 #include "base/bind.h"
6 #include "base/command_line.h" 9 #include "base/command_line.h"
7 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
8 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
9 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
11 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "build/build_config.h"
13 #include "content/public/browser/render_view_host.h" 17 #include "content/public/browser/render_view_host.h"
14 #include "content/public/browser/web_contents.h" 18 #include "content/public/browser/web_contents.h"
15 #include "content/public/common/content_switches.h" 19 #include "content/public/common/content_switches.h"
16 #include "content/public/renderer/render_view.h" 20 #include "content/public/renderer/render_view.h"
17 #include "content/public/renderer/render_view_observer.h" 21 #include "content/public/renderer/render_view_observer.h"
18 #include "content/public/test/content_browser_test.h" 22 #include "content/public/test/content_browser_test.h"
19 #include "content/public/test/content_browser_test_utils.h" 23 #include "content/public/test/content_browser_test_utils.h"
20 #include "content/public/test/test_utils.h" 24 #include "content/public/test/test_utils.h"
21 #include "content/renderer/savable_resources.h" 25 #include "content/renderer/savable_resources.h"
22 #include "content/shell/browser/shell.h" 26 #include "content/shell/browser/shell.h"
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 ASSERT_TRUE(web_frame != NULL); 603 ASSERT_TRUE(web_frame != NULL);
600 WebDocument doc = web_frame->document(); 604 WebDocument doc = web_frame->document();
601 WebNode lastNodeInBody = doc.body().lastChild(); 605 WebNode lastNodeInBody = doc.body().lastChild();
602 ASSERT_TRUE(lastNodeInBody.isElementNode()); 606 ASSERT_TRUE(lastNodeInBody.isElementNode());
603 WebString uri = GetSubResourceLinkFromElement( 607 WebString uri = GetSubResourceLinkFromElement(
604 lastNodeInBody.to<WebElement>()); 608 lastNodeInBody.to<WebElement>());
605 EXPECT_TRUE(uri.isNull()); 609 EXPECT_TRUE(uri.isNull());
606 } 610 }
607 611
608 private: 612 private:
609 int32 render_view_routing_id_; 613 int32_t render_view_routing_id_;
610 std::string serialized_contents_; 614 std::string serialized_contents_;
611 bool serialization_reported_end_of_data_; 615 bool serialization_reported_end_of_data_;
612 }; 616 };
613 617
614 // If original contents have document type, the serialized contents also have 618 // If original contents have document type, the serialized contents also have
615 // document type. 619 // document type.
616 // Disabled by ellyjones@ on 2015-05-18, see https://crbug.com/488495. 620 // Disabled by ellyjones@ on 2015-05-18, see https://crbug.com/488495.
617 #if defined(OS_MACOSX) 621 #if defined(OS_MACOSX)
618 #define MAYBE_SerializeHTMLDOMWithDocType DISABLED_SerializeHTMLDOMWithDocType 622 #define MAYBE_SerializeHTMLDOMWithDocType DISABLED_SerializeHTMLDOMWithDocType
619 #else 623 #else
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 NavigateToURL(shell(), file_url); 854 NavigateToURL(shell(), file_url);
851 855
852 PostTaskToInProcessRendererAndWait( 856 PostTaskToInProcessRendererAndWait(
853 base::Bind( 857 base::Bind(
854 &DomSerializerTests:: 858 &DomSerializerTests::
855 SubResourceForElementsInNonHTMLNamespaceOnRenderer, 859 SubResourceForElementsInNonHTMLNamespaceOnRenderer,
856 base::Unretained(this), file_url)); 860 base::Unretained(this), file_url));
857 } 861 }
858 862
859 } // namespace content 863 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/dom_automation_controller.h ('k') | content/renderer/dom_storage/dom_storage_cached_area.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698