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

Side by Side Diff: base/debug/trace_event_unittest.cc

Issue 410843003: Disable all the tests that are flaking more than 5% on Windows builders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 | base/time/time_win_unittest.cc » ('j') | 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 "base/debug/trace_event_unittest.h" 5 #include "base/debug/trace_event_unittest.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <cstdlib> 8 #include <cstdlib>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after
2408 2408
2409 ASSERT_EQ(6u, collected_events_names_.size()); 2409 ASSERT_EQ(6u, collected_events_names_.size());
2410 VerifyCollectedEvent(0, TRACE_EVENT_PHASE_BEGIN, "callback", "duration1"); 2410 VerifyCollectedEvent(0, TRACE_EVENT_PHASE_BEGIN, "callback", "duration1");
2411 VerifyCollectedEvent(1, TRACE_EVENT_PHASE_BEGIN, "callback", "duration2"); 2411 VerifyCollectedEvent(1, TRACE_EVENT_PHASE_BEGIN, "callback", "duration2");
2412 VerifyCollectedEvent(2, TRACE_EVENT_PHASE_BEGIN, "callback", "duration3"); 2412 VerifyCollectedEvent(2, TRACE_EVENT_PHASE_BEGIN, "callback", "duration3");
2413 VerifyCollectedEvent(3, TRACE_EVENT_PHASE_END, "callback", "duration3"); 2413 VerifyCollectedEvent(3, TRACE_EVENT_PHASE_END, "callback", "duration3");
2414 VerifyCollectedEvent(4, TRACE_EVENT_PHASE_END, "callback", "duration2"); 2414 VerifyCollectedEvent(4, TRACE_EVENT_PHASE_END, "callback", "duration2");
2415 VerifyCollectedEvent(5, TRACE_EVENT_PHASE_END, "callback", "duration1"); 2415 VerifyCollectedEvent(5, TRACE_EVENT_PHASE_END, "callback", "duration1");
2416 } 2416 }
2417 2417
2418 TEST_F(TraceEventTestFixture, TraceBufferVectorReportFull) { 2418 #if defined(OS_WIN)
2419 // http://crbug.com/396403
2420 #define MAYBE_TraceBufferVectorReportFull DISABLED_TraceBufferVectorReportFull
2421 #else
2422 #define MAYBE_TraceBufferVectorReportFull TraceBufferVectorReportFull
2423 #endif
2424 TEST_F(TraceEventTestFixture, MAYBE_TraceBufferVectorReportFull) {
2419 TraceLog* trace_log = TraceLog::GetInstance(); 2425 TraceLog* trace_log = TraceLog::GetInstance();
2420 trace_log->SetEnabled(CategoryFilter("*"), 2426 trace_log->SetEnabled(CategoryFilter("*"),
2421 base::debug::TraceLog::RECORDING_MODE, 2427 base::debug::TraceLog::RECORDING_MODE,
2422 TraceLog::RECORD_UNTIL_FULL); 2428 TraceLog::RECORD_UNTIL_FULL);
2423 trace_log->logged_events_.reset( 2429 trace_log->logged_events_.reset(
2424 trace_log->CreateTraceBufferVectorOfSize(100)); 2430 trace_log->CreateTraceBufferVectorOfSize(100));
2425 do { 2431 do {
2426 TRACE_EVENT_BEGIN_WITH_ID_TID_AND_TIMESTAMP0( 2432 TRACE_EVENT_BEGIN_WITH_ID_TID_AND_TIMESTAMP0(
2427 "all", "with_timestamp", 0, 0, 2433 "all", "with_timestamp", 0, 0,
2428 TimeTicks::NowFromSystemTraceTime().ToInternalValue()); 2434 TimeTicks::NowFromSystemTraceTime().ToInternalValue());
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
2921 } 2927 }
2922 2928
2923 TEST_F(TraceEventTestFixture, SyntheticDelayConfigurationToString) { 2929 TEST_F(TraceEventTestFixture, SyntheticDelayConfigurationToString) {
2924 const char config[] = "DELAY(test.Delay;16;oneshot)"; 2930 const char config[] = "DELAY(test.Delay;16;oneshot)";
2925 CategoryFilter filter(config); 2931 CategoryFilter filter(config);
2926 EXPECT_EQ(config, filter.ToString()); 2932 EXPECT_EQ(config, filter.ToString());
2927 } 2933 }
2928 2934
2929 } // namespace debug 2935 } // namespace debug
2930 } // namespace base 2936 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | base/time/time_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698