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

Side by Side Diff: components/metrics/stability_metrics_helper_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/stability_metrics_helper.h" 5 #include "components/metrics/stability_metrics_helper.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/macros.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/prefs/scoped_user_pref_update.h" 9 #include "base/prefs/scoped_user_pref_update.h"
10 #include "base/prefs/testing_pref_service.h" 10 #include "base/prefs/testing_pref_service.h"
11 #include "components/metrics/proto/system_profile.pb.h" 11 #include "components/metrics/proto/system_profile.pb.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 15
16 namespace { 16 namespace {
17 17
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 system_profile.Clear(); 87 system_profile.Clear();
88 helper.ProvideStabilityMetrics(&system_profile); 88 helper.ProvideStabilityMetrics(&system_profile);
89 89
90 EXPECT_EQ(0, system_profile.stability().renderer_crash_count()); 90 EXPECT_EQ(0, system_profile.stability().renderer_crash_count());
91 EXPECT_EQ(1, system_profile.stability().extension_renderer_crash_count()); 91 EXPECT_EQ(1, system_profile.stability().extension_renderer_crash_count());
92 EXPECT_EQ( 92 EXPECT_EQ(
93 1, system_profile.stability().extension_renderer_failed_launch_count()); 93 1, system_profile.stability().extension_renderer_failed_launch_count());
94 } 94 }
95 95
96 } // namespace metrics 96 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/stability_metrics_helper.cc ('k') | components/metrics/system_memory_stats_recorder_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698