Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: chrome/browser/sync/glue/extensions_activity_monitor_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/extensions_activity_monitor.cc ('k') | chrome/browser/sync/glue/session_sync_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698