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

Unified Diff: chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc

Issue 1140083004: Change WebContents::last_active_time_ to Time instead of Timeticks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc
diff --git a/chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc b/chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc
index 9280b9f7bbee5438a1b054ad5d874d19d2fb08c8..6c2e6721d1a5d5e7f50577fa52cf8e91a95ab14d 100644
--- a/chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc
+++ b/chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc
@@ -35,12 +35,13 @@ enum TestIndicies {
// desired order.
TEST_F(OomPriorityManagerTest, Comparator) {
chromeos::OomPriorityManager::TabStatsList test_list;
- const base::TimeTicks now = base::TimeTicks::Now();
+ const base::Time now = base::Time::Now();
// Add kSelected last to verify we are sorting the array.
{
OomPriorityManager::TabStats stats;
+ stats.last_active = now;
stats.is_pinned = true;
stats.renderer_handle = kPinned;
stats.child_process_host_id = kPinned;
@@ -49,6 +50,7 @@ TEST_F(OomPriorityManagerTest, Comparator) {
{
OomPriorityManager::TabStats stats;
+ stats.last_active = now;
stats.is_app = true;
stats.renderer_handle = kApp;
stats.child_process_host_id = kApp;
@@ -57,6 +59,7 @@ TEST_F(OomPriorityManagerTest, Comparator) {
{
OomPriorityManager::TabStats stats;
+ stats.last_active = now;
stats.is_playing_audio = true;
stats.renderer_handle = kPlayingAudio;
stats.child_process_host_id = kPlayingAudio;
@@ -98,6 +101,7 @@ TEST_F(OomPriorityManagerTest, Comparator) {
{
OomPriorityManager::TabStats stats;
+ stats.last_active = now;
stats.is_reloadable_ui = true;
stats.renderer_handle = kReloadableUI;
stats.child_process_host_id = kReloadableUI;
@@ -108,6 +112,7 @@ TEST_F(OomPriorityManagerTest, Comparator) {
// we are actually sorting the array.
{
OomPriorityManager::TabStats stats;
+ stats.last_active = now;
stats.is_selected = true;
stats.renderer_handle = kSelected;
stats.child_process_host_id = kSelected;
« no previous file with comments | « chrome/browser/chromeos/memory/oom_priority_manager.h ('k') | components/devtools_discovery/basic_target_descriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698