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

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

Issue 2389063002: [Sync] Fixing easy lint violations. (Closed)
Patch Set: Updated for Max's comments. Created 4 years, 2 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 <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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/chrome_sync_client_unittest.cc ('k') | chrome/browser/sync/profile_sync_service_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698