OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |