Home | History | Annotate | Download | only in metrics

Lines Matching refs:local_state

64   scoped_ptr<PrefService> local_state(GetLocalState());
65 local_state->RegisterBooleanPref(prefs::kStabilityExitedCleanly, true);
66 local_state->RegisterIntegerPref(prefs::kStabilityLaunchCount, 0);
67 local_state->RegisterIntegerPref(prefs::kStabilityPageLoadCount, 0);
68 local_state->RegisterIntegerPref(prefs::kStabilityRendererCrashCount, 0);
69 EXPECT_TRUE(local_state->GetBoolean(prefs::kStabilityExitedCleanly));
70 EXPECT_EQ(1, local_state->GetInteger(prefs::kStabilityLaunchCount));
71 EXPECT_EQ(3, local_state->GetInteger(prefs::kStabilityPageLoadCount));
72 EXPECT_EQ(0, local_state->GetInteger(prefs::kStabilityRendererCrashCount));
107 scoped_ptr<PrefService> local_state(GetLocalState());
108 local_state->RegisterBooleanPref(prefs::kStabilityExitedCleanly, true);
109 local_state->RegisterIntegerPref(prefs::kStabilityLaunchCount, 0);
110 local_state->RegisterIntegerPref(prefs::kStabilityPageLoadCount, 0);
111 local_state->RegisterIntegerPref(prefs::kStabilityRendererCrashCount, 0);
112 EXPECT_TRUE(local_state->GetBoolean(prefs::kStabilityExitedCleanly));
113 EXPECT_EQ(1, local_state->GetInteger(prefs::kStabilityLaunchCount));
114 EXPECT_EQ(4, local_state->GetInteger(prefs::kStabilityPageLoadCount));
115 EXPECT_EQ(1, local_state->GetInteger(prefs::kStabilityRendererCrashCount));