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

Side by Side Diff: chrome/browser/metrics/plugin_metrics_provider_unittest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "chrome/browser/metrics/plugin_metrics_provider.h" 5 #include "chrome/browser/metrics/plugin_metrics_provider.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/prefs/pref_service.h"
13 #include "base/prefs/scoped_user_pref_update.h"
14 #include "base/prefs/testing_pref_service.h"
15 #include "base/run_loop.h" 12 #include "base/run_loop.h"
16 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
17 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
18 #include "components/metrics/proto/system_profile.pb.h" 15 #include "components/metrics/proto/system_profile.pb.h"
16 #include "components/prefs/pref_service.h"
17 #include "components/prefs/scoped_user_pref_update.h"
18 #include "components/prefs/testing_pref_service.h"
19 #include "content/public/browser/child_process_data.h" 19 #include "content/public/browser/child_process_data.h"
20 #include "content/public/common/process_type.h" 20 #include "content/public/common/process_type.h"
21 #include "content/public/common/webplugininfo.h" 21 #include "content/public/common/webplugininfo.h"
22 #include "content/public/test/test_browser_thread_bundle.h" 22 #include "content/public/test/test_browser_thread_bundle.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace { 25 namespace {
26 26
27 content::WebPluginInfo CreateFakePluginInfo( 27 content::WebPluginInfo CreateFakePluginInfo(
28 const std::string& name, 28 const std::string& name,
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } else if (name == "p2") { 208 } else if (name == "p2") {
209 EXPECT_EQ(2, stability.plugin_stability(i).instance_count()); 209 EXPECT_EQ(2, stability.plugin_stability(i).instance_count());
210 EXPECT_EQ(2, stability.plugin_stability(i).crash_count()); 210 EXPECT_EQ(2, stability.plugin_stability(i).crash_count());
211 found++; 211 found++;
212 } else { 212 } else {
213 GTEST_FAIL() << "Unexpected plugin name : " << name; 213 GTEST_FAIL() << "Unexpected plugin name : " << name;
214 } 214 }
215 } 215 }
216 EXPECT_EQ(found, 2U); 216 EXPECT_EQ(found, 2U);
217 } 217 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/plugin_metrics_provider.cc ('k') | chrome/browser/net/async_dns_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698