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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/bookmarks/bookmark_extension_api.h" 11 #include "chrome/browser/bookmarks/bookmark_extension_api.h"
12 #include "chrome/common/chrome_notification_types.h" 12 #include "chrome/common/chrome_notification_types.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 "content/browser/notification_service_impl.h" 15 #include "content/browser/notification_service_impl.h"
16 #include "content/test/test_browser_thread.h" 16 #include "content/test/test_browser_thread.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using browser_sync::ExtensionsActivityMonitor; 19 using browser_sync::ExtensionsActivityMonitor;
20 using content::BrowserThread;
20 namespace keys = extension_manifest_keys; 21 namespace keys = extension_manifest_keys;
21 22
22 namespace { 23 namespace {
23 24
24 const FilePath::CharType kTestExtensionPath1[] = 25 const FilePath::CharType kTestExtensionPath1[] =
25 #if defined(OS_POSIX) 26 #if defined(OS_POSIX)
26 FILE_PATH_LITERAL("/testextension1"); 27 FILE_PATH_LITERAL("/testextension1");
27 #elif defined(OS_WIN) 28 #elif defined(OS_WIN)
28 FILE_PATH_LITERAL("c:\\testextension1"); 29 FILE_PATH_LITERAL("c:\\testextension1");
29 #endif 30 #endif
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 241
241 generator.NewEvent<CreateBookmarkFunction>(kTestExtensionPath1, 242 generator.NewEvent<CreateBookmarkFunction>(kTestExtensionPath1,
242 new CreateBookmarkFunction(), 3); 243 new CreateBookmarkFunction(), 3);
243 monitor->GetAndClearRecords(&results); 244 monitor->GetAndClearRecords(&results);
244 245
245 EXPECT_EQ(1U, results.size()); 246 EXPECT_EQ(1U, results.size());
246 EXPECT_EQ(3U, results[id1].bookmark_write_count); 247 EXPECT_EQ(3U, results[id1].bookmark_write_count);
247 248
248 ui_loop()->DeleteSoon(FROM_HERE, monitor); 249 ui_loop()->DeleteSoon(FROM_HERE, monitor);
249 } 250 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/extensions_activity_monitor.cc ('k') | chrome/browser/tab_contents/spellchecker_submenu_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698