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

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

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/util/extensions_activity_monitor.h" 5 #include "chrome/browser/sync/util/extensions_activity_monitor.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/browser_thread.h" 11 #include "chrome/browser/browser_thread.h"
12 #include "chrome/browser/extensions/extension_bookmarks_module.h" 12 #include "chrome/browser/extensions/extension_bookmarks_module.h"
13 #include "chrome/common/extensions/extension.h" 13 #include "chrome/common/extensions/extension.h"
14 #include "chrome/common/extensions/extension_constants.h" 14 #include "chrome/common/extensions/extension_constants.h"
15 #include "chrome/common/notification_service.h" 15 #include "chrome/common/notification_service.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using browser_sync::ExtensionsActivityMonitor; 18 using browser_sync::ExtensionsActivityMonitor;
19 namespace keys = extension_manifest_keys; 19 namespace keys = extension_manifest_keys;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 generator.NewEvent<CreateBookmarkFunction>(kTestExtensionPath1, 238 generator.NewEvent<CreateBookmarkFunction>(kTestExtensionPath1,
239 new CreateBookmarkFunction(), 3); 239 new CreateBookmarkFunction(), 3);
240 monitor->GetAndClearRecords(&results); 240 monitor->GetAndClearRecords(&results);
241 241
242 EXPECT_EQ(1U, results.size()); 242 EXPECT_EQ(1U, results.size());
243 EXPECT_EQ(3U, results[id1].bookmark_write_count); 243 EXPECT_EQ(3U, results[id1].bookmark_write_count);
244 244
245 ui_loop()->DeleteSoon(FROM_HERE, monitor); 245 ui_loop()->DeleteSoon(FROM_HERE, monitor);
246 } 246 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.h ('k') | chrome/browser/webdata/web_data_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698