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

Side by Side Diff: chrome/browser/media/webrtc_log_util_unittest.cc

Issue 486843004: Change base/file_utils.h includes to base/files/file_utils.h in chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad merge Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/file_util.h"
6 #include "base/files/file_enumerator.h" 5 #include "base/files/file_enumerator.h"
7 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/files/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "chrome/browser/media/webrtc_log_util.h" 11 #include "chrome/browser/media/webrtc_log_util.h"
12 #include "content/public/test/test_browser_thread.h" 12 #include "content/public/test/test_browser_thread.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 const int kExpectedDaysToKeepLogFiles = 5; 15 const int kExpectedDaysToKeepLogFiles = 5;
16 16
17 class WebRtcLogUtilTest : public testing::Test { 17 class WebRtcLogUtilTest : public testing::Test {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 VerifyFiles(2); 61 VerifyFiles(2);
62 } 62 }
63 63
64 TEST_F(WebRtcLogUtilTest, DeleteOldAndRecentWebRtcLogFiles) { 64 TEST_F(WebRtcLogUtilTest, DeleteOldAndRecentWebRtcLogFiles) {
65 base::Time time_begin_delete = 65 base::Time time_begin_delete =
66 base::Time::Now() - base::TimeDelta::FromDays(1); 66 base::Time::Now() - base::TimeDelta::FromDays(1);
67 WebRtcLogUtil::DeleteOldAndRecentWebRtcLogFiles(dir_.path(), 67 WebRtcLogUtil::DeleteOldAndRecentWebRtcLogFiles(dir_.path(),
68 time_begin_delete); 68 time_begin_delete);
69 VerifyFiles(1); 69 VerifyFiles(1);
70 } 70 }
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc_log_util.cc ('k') | chrome/browser/media/webrtc_logging_handler_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698