OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 121 } |
122 break; | 122 break; |
123 } | 123 } |
124 } | 124 } |
125 EXPECT_LT(j, histograms.size()); | 125 EXPECT_LT(j, histograms.size()); |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 } // anonymous namespace | 129 } // anonymous namespace |
130 | 130 |
131 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Metrics) { | 131 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_Metrics) { |
132 base::UserActionTester user_action_tester; | 132 base::UserActionTester user_action_tester; |
133 | 133 |
134 base::FieldTrialList::CreateFieldTrial("apitestfieldtrial2", "group1"); | 134 base::FieldTrialList::CreateFieldTrial("apitestfieldtrial2", "group1"); |
135 | 135 |
136 std::map<std::string, std::string> params; | 136 std::map<std::string, std::string> params; |
137 params["a"] = "aa"; | 137 params["a"] = "aa"; |
138 params["b"] = "bb"; | 138 params["b"] = "bb"; |
139 ASSERT_TRUE(variations::AssociateVariationParams( | 139 ASSERT_TRUE(variations::AssociateVariationParams( |
140 "apitestfieldtrial2", "group1", params)); | 140 "apitestfieldtrial2", "group1", params)); |
141 | 141 |
142 ASSERT_TRUE(RunComponentExtensionTest("metrics")) << message_; | 142 ASSERT_TRUE(RunComponentExtensionTest("metrics")) << message_; |
143 | 143 |
144 ValidateUserActions(user_action_tester, g_user_actions, | 144 ValidateUserActions(user_action_tester, g_user_actions, |
145 arraysize(g_user_actions)); | 145 arraysize(g_user_actions)); |
146 ValidateHistograms(g_histograms, arraysize(g_histograms)); | 146 ValidateHistograms(g_histograms, arraysize(g_histograms)); |
147 } | 147 } |
OLD | NEW |