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

Side by Side Diff: content/browser/site_per_process_browsertest.cc

Issue 1786743003: Disable SitePerProcessBrowserTest.SubframeGestureEventRouting under TSan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/site_per_process_browsertest.h" 5 #include "content/browser/site_per_process_browsertest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 4573 matching lines...) Expand 10 before | Expand all | Expand 10 after
4584 4584
4585 // Declared here to be close to the SubframeGestureEventRouting test. 4585 // Declared here to be close to the SubframeGestureEventRouting test.
4586 void OnSyntheticGestureCompleted(scoped_refptr<MessageLoopRunner> runner, 4586 void OnSyntheticGestureCompleted(scoped_refptr<MessageLoopRunner> runner,
4587 SyntheticGesture::Result result) { 4587 SyntheticGesture::Result result) {
4588 EXPECT_EQ(SyntheticGesture::GESTURE_FINISHED, result); 4588 EXPECT_EQ(SyntheticGesture::GESTURE_FINISHED, result);
4589 runner->Quit(); 4589 runner->Quit();
4590 } 4590 }
4591 4591
4592 } // namespace anonymous 4592 } // namespace anonymous
4593 4593
4594 // Flaky under TSan. https://crbug.com/592320
4595 #if defined(THREAD_SANITIZER)
4596 #define MAYBE_SubframeGestureEventRouting DISABLED_SubframeGestureEventRouting
4597 #else
4598 #define MAYBE_SubframeGestureEventRouting SubframeGestureEventRouting
4599 #endif
4594 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, 4600 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
4595 SubframeGestureEventRouting) { 4601 MAYBE_SubframeGestureEventRouting) {
4596 GURL main_url(embedded_test_server()->GetURL( 4602 GURL main_url(embedded_test_server()->GetURL(
4597 "/frame_tree/page_with_positioned_nested_frames.html")); 4603 "/frame_tree/page_with_positioned_nested_frames.html"));
4598 EXPECT_TRUE(NavigateToURL(shell(), main_url)); 4604 EXPECT_TRUE(NavigateToURL(shell(), main_url));
4599 4605
4600 WebContentsImpl* web_contents = 4606 WebContentsImpl* web_contents =
4601 static_cast<WebContentsImpl*>(shell()->web_contents()); 4607 static_cast<WebContentsImpl*>(shell()->web_contents());
4602 FrameTreeNode* root = web_contents->GetFrameTree()->root(); 4608 FrameTreeNode* root = web_contents->GetFrameTree()->root();
4603 ASSERT_EQ(1U, root->child_count()); 4609 ASSERT_EQ(1U, root->child_count());
4604 4610
4605 GURL frame_url( 4611 GURL frame_url(
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
5865 script.c_str(), &root_value)); 5871 script.c_str(), &root_value));
5866 5872
5867 EXPECT_TRUE(ExecuteScriptAndExtractInt(child->current_frame_host(), 5873 EXPECT_TRUE(ExecuteScriptAndExtractInt(child->current_frame_host(),
5868 script.c_str(), &child_value)); 5874 script.c_str(), &child_value));
5869 5875
5870 EXPECT_EQ(root_value, child_value); 5876 EXPECT_EQ(root_value, child_value);
5871 } 5877 }
5872 } 5878 }
5873 5879
5874 } // namespace content 5880 } // 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