OLD | NEW |
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 entry. | 3 // found in the LICENSE entry. |
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/waitable_event.h" |
10 #include "chrome/browser/chrome_thread.h" | 10 #include "chrome/browser/chrome_thread.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 EXPECT_TRUE(results.empty()); | 224 EXPECT_TRUE(results.empty()); |
225 | 225 |
226 generator.NewEvent<CreateBookmarkFunction>(kTestExtensionPath1, | 226 generator.NewEvent<CreateBookmarkFunction>(kTestExtensionPath1, |
227 new CreateBookmarkFunction(), 3); | 227 new CreateBookmarkFunction(), 3); |
228 monitor->GetAndClearRecords(&results); | 228 monitor->GetAndClearRecords(&results); |
229 | 229 |
230 EXPECT_EQ(1, results.size()); | 230 EXPECT_EQ(1, results.size()); |
231 EXPECT_EQ(3, results[id1].bookmark_write_count); | 231 EXPECT_EQ(3, results[id1].bookmark_write_count); |
232 | 232 |
233 ui_loop()->DeleteSoon(FROM_HERE, monitor); | 233 ui_loop()->DeleteSoon(FROM_HERE, monitor); |
234 } | 234 } |
OLD | NEW |