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

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

Issue 318633003: Disable DomSerializerTests.SerializeHTMLDOMWithEmptyHead under ThreadSanitizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 ASSERT_TRUE(file_url.SchemeIsFile()); 972 ASSERT_TRUE(file_url.SchemeIsFile());
973 // Load the test file. 973 // Load the test file.
974 NavigateToURL(shell(), file_url); 974 NavigateToURL(shell(), file_url);
975 975
976 PostTaskToInProcessRendererAndWait( 976 PostTaskToInProcessRendererAndWait(
977 base::Bind( 977 base::Bind(
978 &DomSerializerTests::SerializeHTMLDOMWithBaseTagOnRenderer, 978 &DomSerializerTests::SerializeHTMLDOMWithBaseTagOnRenderer,
979 base::Unretained(this), file_url, path_dir_url)); 979 base::Unretained(this), file_url, path_dir_url));
980 } 980 }
981 981
982 #if defined(THREAD_SANITIZER)
983 // TSan reports a use-after-free in this test, see http://crbug.com/375672.
984 #define MAYBE_SerializeHTMLDOMWithEmptyHead \
985 DISABLED_SerializeHTMLDOMWithEmptyHead
986 #else
987 #define MAYBE_SerializeHTMLDOMWithEmptyHead SerializeHTMLDOMWithEmptyHead
988 #endif
982 // Serializing page which has an empty HEAD tag. 989 // Serializing page which has an empty HEAD tag.
983 IN_PROC_BROWSER_TEST_F(DomSerializerTests, SerializeHTMLDOMWithEmptyHead) { 990 IN_PROC_BROWSER_TEST_F(DomSerializerTests,
991 MAYBE_SerializeHTMLDOMWithEmptyHead) {
984 // Need to spin up the renderer and also navigate to a file url so that the 992 // Need to spin up the renderer and also navigate to a file url so that the
985 // renderer code doesn't attempt a fork when it sees a load to file scheme 993 // renderer code doesn't attempt a fork when it sees a load to file scheme
986 // from non-file scheme. 994 // from non-file scheme.
987 NavigateToURL(shell(), GetTestUrl(".", "simple_page.html")); 995 NavigateToURL(shell(), GetTestUrl(".", "simple_page.html"));
988 996
989 PostTaskToInProcessRendererAndWait( 997 PostTaskToInProcessRendererAndWait(
990 base::Bind(&DomSerializerTests::SerializeHTMLDOMWithEmptyHeadOnRenderer, 998 base::Bind(&DomSerializerTests::SerializeHTMLDOMWithEmptyHeadOnRenderer,
991 base::Unretained(this))); 999 base::Unretained(this)));
992 } 1000 }
993 1001
(...skipping 23 matching lines...) Expand all
1017 NavigateToURL(shell(), file_url); 1025 NavigateToURL(shell(), file_url);
1018 1026
1019 PostTaskToInProcessRendererAndWait( 1027 PostTaskToInProcessRendererAndWait(
1020 base::Bind( 1028 base::Bind(
1021 &DomSerializerTests:: 1029 &DomSerializerTests::
1022 SubResourceForElementsInNonHTMLNamespaceOnRenderer, 1030 SubResourceForElementsInNonHTMLNamespaceOnRenderer,
1023 base::Unretained(this), file_url)); 1031 base::Unretained(this), file_url));
1024 } 1032 }
1025 1033
1026 } // namespace content 1034 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698