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

Unified Diff: third_party/WebKit/Source/core/frame/PerformanceMonitorTest.cpp

Issue 2713553010: Migrate performance monitor to inspector instrumentation. (Closed)
Patch Set: Introduce progress monitor Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/PerformanceMonitorTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/PerformanceMonitorTest.cpp b/third_party/WebKit/Source/core/frame/PerformanceMonitorTest.cpp
index a784878166c3a3acca500f643e4e736e74d4b41f..20066335d31bb1d3e1441af6499044603a6cba6a 100644
--- a/third_party/WebKit/Source/core/frame/PerformanceMonitorTest.cpp
+++ b/third_party/WebKit/Source/core/frame/PerformanceMonitorTest.cpp
@@ -17,6 +17,7 @@ namespace blink {
class PerformanceMonitorTest : public ::testing::Test {
protected:
void SetUp() override;
+ void TearDown() override;
LocalFrame* frame() const { return m_pageHolder->document().frame(); }
ExecutionContext* executionContext() const {
return &m_pageHolder->document();
@@ -29,7 +30,7 @@ class PerformanceMonitorTest : public ::testing::Test {
}
void willExecuteScript(ExecutionContext* executionContext) {
- m_monitor->alwaysWillExecuteScript(executionContext);
+ m_monitor->willExecuteScript(executionContext);
}
// scheduler::TaskTimeObserver implementation
@@ -62,6 +63,10 @@ void PerformanceMonitorTest::SetUp() {
KURL(KURL(), "https://iframed.com/bar"));
}
+void PerformanceMonitorTest::TearDown() {
+ m_monitor->shutdown();
+}
+
String PerformanceMonitorTest::frameContextURL() {
// This is reported only if there is a single frameContext URL.
if (m_monitor->m_taskHasMultipleContexts)

Powered by Google App Engine
This is Rietveld 408576698