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

Side by Side Diff: content/public/test/render_view_test.cc

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: Created 4 years 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) 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/public/test/render_view_test.h" 5 #include "content/public/test/render_view_test.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cctype> 9 #include <cctype>
10 10
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 test_io_thread_.reset(); 358 test_io_thread_.reset();
359 ipc_support_.reset(); 359 ipc_support_.reset();
360 } 360 }
361 361
362 void RenderViewTest::onLeakDetectionComplete(const Result& result) { 362 void RenderViewTest::onLeakDetectionComplete(const Result& result) {
363 EXPECT_EQ(0u, result.numberOfLiveAudioNodes); 363 EXPECT_EQ(0u, result.numberOfLiveAudioNodes);
364 EXPECT_EQ(0u, result.numberOfLiveDocuments); 364 EXPECT_EQ(0u, result.numberOfLiveDocuments);
365 EXPECT_EQ(0u, result.numberOfLiveNodes); 365 EXPECT_EQ(0u, result.numberOfLiveNodes);
366 EXPECT_EQ(0u, result.numberOfLiveLayoutObjects); 366 EXPECT_EQ(0u, result.numberOfLiveLayoutObjects);
367 EXPECT_EQ(0u, result.numberOfLiveResources); 367 EXPECT_EQ(0u, result.numberOfLiveResources);
368 EXPECT_EQ(0u, result.numberOfLiveActiveDOMObjects); 368 EXPECT_EQ(0u, result.numberOfLiveSuspendableObjects);
369 EXPECT_EQ(0u, result.numberOfLiveScriptPromises); 369 EXPECT_EQ(0u, result.numberOfLiveScriptPromises);
370 EXPECT_EQ(0u, result.numberOfLiveFrames); 370 EXPECT_EQ(0u, result.numberOfLiveFrames);
371 EXPECT_EQ(0u, result.numberOfLiveV8PerContextData); 371 EXPECT_EQ(0u, result.numberOfLiveV8PerContextData);
372 EXPECT_EQ(0u, result.numberOfWorkerGlobalScopes); 372 EXPECT_EQ(0u, result.numberOfWorkerGlobalScopes);
373 } 373 }
374 374
375 void RenderViewTest::SendNativeKeyEvent( 375 void RenderViewTest::SendNativeKeyEvent(
376 const NativeWebKeyboardEvent& key_event) { 376 const NativeWebKeyboardEvent& key_event) {
377 SendWebKeyboardEvent(key_event); 377 SendWebKeyboardEvent(key_event);
378 } 378 }
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 static_cast<TestRenderFrame*>(impl->GetMainRenderFrame()); 664 static_cast<TestRenderFrame*>(impl->GetMainRenderFrame());
665 frame->Navigate(common_params, StartNavigationParams(), request_params); 665 frame->Navigate(common_params, StartNavigationParams(), request_params);
666 666
667 // The load actually happens asynchronously, so we pump messages to process 667 // The load actually happens asynchronously, so we pump messages to process
668 // the pending continuation. 668 // the pending continuation.
669 FrameLoadWaiter(frame).Wait(); 669 FrameLoadWaiter(frame).Wait();
670 view_->GetWebView()->updateAllLifecyclePhases(); 670 view_->GetWebView()->updateAllLifecyclePhases();
671 } 671 }
672 672
673 } // namespace content 673 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698