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 "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h" | 14 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h" |
15 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
| 16 #include "components/sync/base/extensions_activity.h" |
16 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
17 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
18 #include "extensions/common/extension.h" | 19 #include "extensions/common/extension.h" |
19 #include "extensions/common/manifest_constants.h" | 20 #include "extensions/common/manifest_constants.h" |
20 #include "sync/util/extensions_activity.h" | |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 using extensions::Extension; | 23 using extensions::Extension; |
24 | 24 |
25 namespace browser_sync { | 25 namespace browser_sync { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 namespace keys = extensions::manifest_keys; | 29 namespace keys = extensions::manifest_keys; |
30 | 30 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 FireBookmarksApiEvent<extensions::BookmarksCreateFunction>(extension1_, 3); | 166 FireBookmarksApiEvent<extensions::BookmarksCreateFunction>(extension1_, 3); |
167 monitor_.GetExtensionsActivity()->GetAndClearRecords(&results); | 167 monitor_.GetExtensionsActivity()->GetAndClearRecords(&results); |
168 | 168 |
169 EXPECT_EQ(1U, results.size()); | 169 EXPECT_EQ(1U, results.size()); |
170 EXPECT_EQ(3U, results[id1_].bookmark_write_count); | 170 EXPECT_EQ(3U, results[id1_].bookmark_write_count); |
171 } | 171 } |
172 | 172 |
173 } // namespace | 173 } // namespace |
174 | 174 |
175 } // namespace browser_sync | 175 } // namespace browser_sync |
OLD | NEW |