OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/sync/glue/extensions_activity_monitor.h" | 5 #include "chrome/browser/sync/glue/extensions_activity_monitor.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
10 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
11 #include "base/path_service.h" | 13 #include "base/path_service.h" |
12 #include "base/values.h" | 14 #include "base/values.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h" | 16 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h" |
15 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
16 #include "components/sync/base/extensions_activity.h" | 18 #include "components/sync/base/extensions_activity.h" |
17 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
18 #include "content/public/test/test_browser_thread_bundle.h" | 20 #include "content/public/test/test_browser_thread_bundle.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 FireBookmarksApiEvent<extensions::BookmarksCreateFunction>(extension1_, 3); | 168 FireBookmarksApiEvent<extensions::BookmarksCreateFunction>(extension1_, 3); |
167 monitor_.GetExtensionsActivity()->GetAndClearRecords(&results); | 169 monitor_.GetExtensionsActivity()->GetAndClearRecords(&results); |
168 | 170 |
169 EXPECT_EQ(1U, results.size()); | 171 EXPECT_EQ(1U, results.size()); |
170 EXPECT_EQ(3U, results[id1_].bookmark_write_count); | 172 EXPECT_EQ(3U, results[id1_].bookmark_write_count); |
171 } | 173 } |
172 | 174 |
173 } // namespace | 175 } // namespace |
174 | 176 |
175 } // namespace browser_sync | 177 } // namespace browser_sync |
OLD | NEW |