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

Side by Side Diff: chrome/browser/extensions/app_notification_manager_sync_unittest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "chrome/browser/extensions/app_notification.h" 9 #include "chrome/browser/extensions/app_notification.h"
10 #include "chrome/browser/extensions/app_notification_manager.h" 10 #include "chrome/browser/extensions/app_notification_manager.h"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "content/test/test_browser_thread.h" 12 #include "content/public/test/test_browser_thread.h"
13 #include "sync/api/sync_error_factory.h" 13 #include "sync/api/sync_error_factory.h"
14 #include "sync/api/sync_error_factory_mock.h" 14 #include "sync/api/sync_error_factory_mock.h"
15 #include "sync/protocol/app_notification_specifics.pb.h" 15 #include "sync/protocol/app_notification_specifics.pb.h"
16 #include "sync/protocol/sync.pb.h" 16 #include "sync/protocol/sync.pb.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using content::BrowserThread; 19 using content::BrowserThread;
20 using ::testing::_; 20 using ::testing::_;
21 using ::testing::Return; 21 using ::testing::Return;
22 22
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 731
732 EXPECT_EQ(3U, processor()->change_list_size()); 732 EXPECT_EQ(3U, processor()->change_list_size());
733 EXPECT_TRUE(processor()->ContainsGuid(n1->guid())); 733 EXPECT_TRUE(processor()->ContainsGuid(n1->guid()));
734 SyncChange c1 = processor()->GetChangeByGuid(n1->guid()); 734 SyncChange c1 = processor()->GetChangeByGuid(n1->guid());
735 AssertSyncChange(c1, SyncChange::ACTION_DELETE, *n1); 735 AssertSyncChange(c1, SyncChange::ACTION_DELETE, *n1);
736 SyncChange c2 = processor()->GetChangeByGuid(n2->guid()); 736 SyncChange c2 = processor()->GetChangeByGuid(n2->guid());
737 AssertSyncChange(c2, SyncChange::ACTION_DELETE, *n2); 737 AssertSyncChange(c2, SyncChange::ACTION_DELETE, *n2);
738 SyncChange c3 = processor()->GetChangeByGuid(n3->guid()); 738 SyncChange c3 = processor()->GetChangeByGuid(n3->guid());
739 AssertSyncChange(c3, SyncChange::ACTION_DELETE, *n3); 739 AssertSyncChange(c3, SyncChange::ACTION_DELETE, *n3);
740 } 740 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698