| OLD | NEW |
| 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 "components/metrics/chromeos/serialization_utils.h" | 5 #include "components/metrics/external/serialization_utils.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "components/metrics/chromeos/metric_sample.h" | 11 #include "components/metrics/external/metric_sample.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace metrics { | 14 namespace metrics { |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 class SerializationUtilsChromeOSTest : public testing::Test { | 17 class SerializationUtilsChromeOSTest : public testing::Test { |
| 18 protected: | 18 protected: |
| 19 SerializationUtilsChromeOSTest() { | 19 SerializationUtilsChromeOSTest() { |
| 20 bool success = temporary_dir.CreateUniqueTempDir(); | 20 bool success = temporary_dir.CreateUniqueTempDir(); |
| 21 if (success) { | 21 if (success) { |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 EXPECT_TRUE(shist->IsEqual(*vect[3])); | 161 EXPECT_TRUE(shist->IsEqual(*vect[3])); |
| 162 EXPECT_TRUE(action->IsEqual(*vect[4])); | 162 EXPECT_TRUE(action->IsEqual(*vect[4])); |
| 163 | 163 |
| 164 int64 size = 0; | 164 int64 size = 0; |
| 165 ASSERT_TRUE(base::GetFileSize(filepath, &size)); | 165 ASSERT_TRUE(base::GetFileSize(filepath, &size)); |
| 166 ASSERT_EQ(0, size); | 166 ASSERT_EQ(0, size); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace | 169 } // namespace |
| 170 } // namespace metrics | 170 } // namespace metrics |
| OLD | NEW |