| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/macros.h" |
| 5 #include "chrome/browser/sync_file_system/logger.h" | 6 #include "chrome/browser/sync_file_system/logger.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 8 |
| 8 using drive::EventLogger; | 9 using drive::EventLogger; |
| 9 | 10 |
| 10 namespace sync_file_system { | 11 namespace sync_file_system { |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 // Logs one event at each supported LogSeverity level. | 15 // Logs one event at each supported LogSeverity level. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 TEST_F(LoggerTest, ClearLog) { | 52 TEST_F(LoggerTest, ClearLog) { |
| 52 LogSampleEvents(); | 53 LogSampleEvents(); |
| 53 EXPECT_EQ(3u, util::GetLogHistory().size()); | 54 EXPECT_EQ(3u, util::GetLogHistory().size()); |
| 54 | 55 |
| 55 util::ClearLog(); | 56 util::ClearLog(); |
| 56 EXPECT_EQ(0u, util::GetLogHistory().size()); | 57 EXPECT_EQ(0u, util::GetLogHistory().size()); |
| 57 } | 58 } |
| 58 | 59 |
| 59 | 60 |
| 60 } // namespace sync_file_system | 61 } // namespace sync_file_system |
| OLD | NEW |