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

Side by Side Diff: components/metrics/external/serialization_utils_unittest.cc

Issue 394093003: Moves components/metrics/chromeos to c/m/serialization/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 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
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
OLDNEW
« components/metrics.gypi ('K') | « components/metrics/external/serialization_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698