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 "components/feedback/feedback_uploader.h" | 5 #include "components/feedback/feedback_uploader.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <set> | 9 #include <set> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
13 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "build/build_config.h" |
14 #include "components/feedback/feedback_uploader_chrome.h" | 17 #include "components/feedback/feedback_uploader_chrome.h" |
15 #include "components/feedback/feedback_uploader_factory.h" | 18 #include "components/feedback/feedback_uploader_factory.h" |
16 #include "components/pref_registry/testing_pref_service_syncable.h" | 19 #include "components/pref_registry/testing_pref_service_syncable.h" |
17 #include "components/user_prefs/user_prefs.h" | 20 #include "components/user_prefs/user_prefs.h" |
18 #include "content/public/test/test_browser_context.h" | 21 #include "content/public/test/test_browser_context.h" |
19 #include "content/public/test/test_browser_thread.h" | 22 #include "content/public/test/test_browser_thread.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
22 | 25 |
23 namespace { | 26 namespace { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 160 |
158 EXPECT_EQ(dispatched_reports_.size(), 5u); | 161 EXPECT_EQ(dispatched_reports_.size(), 5u); |
159 EXPECT_EQ(dispatched_reports_[kReportOne], 1u); | 162 EXPECT_EQ(dispatched_reports_[kReportOne], 1u); |
160 EXPECT_EQ(dispatched_reports_[kReportTwo], 2u); | 163 EXPECT_EQ(dispatched_reports_[kReportTwo], 2u); |
161 EXPECT_EQ(dispatched_reports_[kReportThree], 2u); | 164 EXPECT_EQ(dispatched_reports_[kReportThree], 2u); |
162 EXPECT_EQ(dispatched_reports_[kReportFour], 1u); | 165 EXPECT_EQ(dispatched_reports_[kReportFour], 1u); |
163 EXPECT_EQ(dispatched_reports_[kReportFive], 1u); | 166 EXPECT_EQ(dispatched_reports_[kReportFive], 1u); |
164 } | 167 } |
165 | 168 |
166 } // namespace feedback | 169 } // namespace feedback |
OLD | NEW |