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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_extensions_activity_monitor.h" 5 #include "chrome/browser/sync/glue/chrome_extensions_activity_monitor.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 public: 63 public:
64 SyncChromeExtensionsActivityMonitorTest() 64 SyncChromeExtensionsActivityMonitorTest()
65 : ui_thread_(BrowserThread::UI, &ui_loop_), 65 : ui_thread_(BrowserThread::UI, &ui_loop_),
66 extension1_(MakeExtension("extension1")), 66 extension1_(MakeExtension("extension1")),
67 extension2_(MakeExtension("extension2")), 67 extension2_(MakeExtension("extension2")),
68 id1_(extension1_->id()), 68 id1_(extension1_->id()),
69 id2_(extension2_->id()) {} 69 id2_(extension2_->id()) {}
70 virtual ~SyncChromeExtensionsActivityMonitorTest() {} 70 virtual ~SyncChromeExtensionsActivityMonitorTest() {}
71 71
72 private: 72 private:
73 MessageLoop ui_loop_; 73 base::MessageLoop ui_loop_;
74 content::TestBrowserThread ui_thread_; 74 content::TestBrowserThread ui_thread_;
75 75
76 protected: 76 protected:
77 ChromeExtensionsActivityMonitor monitor_; 77 ChromeExtensionsActivityMonitor monitor_;
78 scoped_refptr<Extension> extension1_; 78 scoped_refptr<Extension> extension1_;
79 scoped_refptr<Extension> extension2_; 79 scoped_refptr<Extension> extension2_;
80 // IDs of |extension{1,2}_|. 80 // IDs of |extension{1,2}_|.
81 const std::string& id1_; 81 const std::string& id1_;
82 const std::string& id2_; 82 const std::string& id2_;
83 }; 83 };
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 FireBookmarksApiEvent<extensions::BookmarksCreateFunction>(extension1_, 3); 165 FireBookmarksApiEvent<extensions::BookmarksCreateFunction>(extension1_, 3);
166 monitor_.GetAndClearRecords(&results); 166 monitor_.GetAndClearRecords(&results);
167 167
168 EXPECT_EQ(1U, results.size()); 168 EXPECT_EQ(1U, results.size());
169 EXPECT_EQ(3U, results[id1_].bookmark_write_count); 169 EXPECT_EQ(3U, results[id1_].bookmark_write_count);
170 } 170 }
171 171
172 } // namespace 172 } // namespace
173 173
174 } // namespace browser_sync 174 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc ('k') | chrome/browser/sync/glue/data_type_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698