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

Side by Side Diff: chrome/browser/metrics/desktop_session/audible_contents_tracker_browsertest.cc

Issue 2333113002: Rename DesktopEngagement* to DesktopSessionDuration*. (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/metrics/desktop_engagement/audible_contents_tracker.h" 5 #include "chrome/browser/metrics/desktop_session/audible_contents_tracker.h"
6 6
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 #include "chrome/test/base/ui_test_utils.h" 9 #include "chrome/test/base/ui_test_utils.h"
10 #include "content/public/test/browser_test_base.h" 10 #include "content/public/test/browser_test_base.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace { 13 namespace {
14 14
15 // Observer for testing AudibleContentsTracker. 15 // Observer for testing AudibleContentsTracker.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Wait until the audio starts. 73 // Wait until the audio starts.
74 while (!audio_observer->is_audio_playing()) { 74 while (!audio_observer->is_audio_playing()) {
75 base::RunLoop().RunUntilIdle(); 75 base::RunLoop().RunUntilIdle();
76 } 76 }
77 77
78 // Wait until the audio stops. 78 // Wait until the audio stops.
79 while (audio_observer->is_audio_playing()) { 79 while (audio_observer->is_audio_playing()) {
80 base::RunLoop().RunUntilIdle(); 80 base::RunLoop().RunUntilIdle();
81 } 81 }
82 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698