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 "chrome/browser/metrics/plugin_metrics_provider.h" | 5 #include "chrome/browser/metrics/plugin_metrics_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/basictypes.h" | 11 #include "base/macros.h" |
10 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
11 #include "base/prefs/scoped_user_pref_update.h" | 13 #include "base/prefs/scoped_user_pref_update.h" |
12 #include "base/prefs/testing_pref_service.h" | 14 #include "base/prefs/testing_pref_service.h" |
13 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
14 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
16 #include "components/metrics/proto/system_profile.pb.h" | 18 #include "components/metrics/proto/system_profile.pb.h" |
17 #include "content/public/browser/child_process_data.h" | 19 #include "content/public/browser/child_process_data.h" |
18 #include "content/public/common/process_type.h" | 20 #include "content/public/common/process_type.h" |
19 #include "content/public/common/webplugininfo.h" | 21 #include "content/public/common/webplugininfo.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } else if (name == "p2") { | 208 } else if (name == "p2") { |
207 EXPECT_EQ(2, stability.plugin_stability(i).instance_count()); | 209 EXPECT_EQ(2, stability.plugin_stability(i).instance_count()); |
208 EXPECT_EQ(2, stability.plugin_stability(i).crash_count()); | 210 EXPECT_EQ(2, stability.plugin_stability(i).crash_count()); |
209 found++; | 211 found++; |
210 } else { | 212 } else { |
211 GTEST_FAIL() << "Unexpected plugin name : " << name; | 213 GTEST_FAIL() << "Unexpected plugin name : " << name; |
212 } | 214 } |
213 } | 215 } |
214 EXPECT_EQ(found, 2U); | 216 EXPECT_EQ(found, 2U); |
215 } | 217 } |
OLD | NEW |