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

Unified Diff: content/browser/media/session/media_session_uma_helper_unittest.cc

Issue 1918433003: Use TimeTicks for MediaSessionUmaHelper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « content/browser/media/session/media_session_uma_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/session/media_session_uma_helper_unittest.cc
diff --git a/content/browser/media/session/media_session_uma_helper_unittest.cc b/content/browser/media/session/media_session_uma_helper_unittest.cc
index de9b2df2e763e3a794e2ef0e1dade6fb46a28767..c0931d2f89df69f4ead0dd490e64806a7fc5ac86 100644
--- a/content/browser/media/session/media_session_uma_helper_unittest.cc
+++ b/content/browser/media/session/media_session_uma_helper_unittest.cc
@@ -6,7 +6,7 @@
#include "base/metrics/histogram_samples.h"
#include "base/test/histogram_tester.h"
-#include "base/test/simple_test_clock.h"
+#include "base/test/simple_test_tick_clock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
@@ -21,17 +21,17 @@ class MediaSessionUmaHelperTest : public testing::Test {
MediaSessionUmaHelperTest() = default;
void SetUp() override {
- clock_ = new base::SimpleTestClock();
- clock_->SetNow(base::Time::Now());
+ clock_ = new base::SimpleTestTickClock();
+ clock_->SetNowTicks(base::TimeTicks::Now());
media_session_uma_helper_.SetClockForTest(
- std::unique_ptr<base::SimpleTestClock>(clock_));
+ std::unique_ptr<base::SimpleTestTickClock>(clock_));
}
void TearDown() override {
clock_ = nullptr;
}
- base::SimpleTestClock* clock() { return clock_; }
+ base::SimpleTestTickClock* clock() { return clock_; }
MediaSessionUmaHelper& media_session_uma_helper() {
return media_session_uma_helper_;
@@ -43,7 +43,7 @@ class MediaSessionUmaHelperTest : public testing::Test {
}
private:
- base::SimpleTestClock* clock_ = nullptr;
+ base::SimpleTestTickClock* clock_ = nullptr;
MediaSessionUmaHelper media_session_uma_helper_;
base::HistogramTester histogram_tester_;
};
« no previous file with comments | « content/browser/media/session/media_session_uma_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698