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

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

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <map> 7 #include <map>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/extensions/extension_sync_data.h" 25 #include "chrome/browser/extensions/extension_sync_data.h"
26 #include "chrome/browser/extensions/extension_sync_service.h" 26 #include "chrome/browser/extensions/extension_sync_service.h"
27 #include "chrome/browser/extensions/extension_util.h" 27 #include "chrome/browser/extensions/extension_util.h"
28 #include "chrome/browser/extensions/scripting_permissions_modifier.h" 28 #include "chrome/browser/extensions/scripting_permissions_modifier.h"
29 #include "chrome/browser/extensions/updater/extension_updater.h" 29 #include "chrome/browser/extensions/updater/extension_updater.h"
30 #include "chrome/browser/sync/profile_sync_service_factory.h" 30 #include "chrome/browser/sync/profile_sync_service_factory.h"
31 #include "chrome/common/chrome_constants.h" 31 #include "chrome/common/chrome_constants.h"
32 #include "chrome/common/chrome_switches.h" 32 #include "chrome/common/chrome_switches.h"
33 #include "chrome/common/extensions/sync_helper.h" 33 #include "chrome/common/extensions/sync_helper.h"
34 #include "chrome/test/base/testing_profile.h" 34 #include "chrome/test/base/testing_profile.h"
35 #include "components/browser_sync/browser/profile_sync_service.h" 35 #include "components/browser_sync/profile_sync_service.h"
36 #include "components/crx_file/id_util.h" 36 #include "components/crx_file/id_util.h"
37 #include "components/sync/api/fake_sync_change_processor.h" 37 #include "components/sync/api/fake_sync_change_processor.h"
38 #include "components/sync/api/sync_change_processor_wrapper_for_test.h" 38 #include "components/sync/api/sync_change_processor_wrapper_for_test.h"
39 #include "components/sync/api/sync_data.h" 39 #include "components/sync/api/sync_data.h"
40 #include "components/sync/api/sync_error_factory_mock.h" 40 #include "components/sync/api/sync_error_factory_mock.h"
41 #include "components/variations/variations_associated_data.h" 41 #include "components/variations/variations_associated_data.h"
42 #include "extensions/browser/api_test_utils.h" 42 #include "extensions/browser/api_test_utils.h"
43 #include "extensions/browser/app_sorting.h" 43 #include "extensions/browser/app_sorting.h"
44 #include "extensions/browser/extension_prefs.h" 44 #include "extensions/browser/extension_prefs.h"
45 #include "extensions/browser/extension_registry.h" 45 #include "extensions/browser/extension_registry.h"
(...skipping 2464 matching lines...) Expand 10 before | Expand all | Expand 10 after
2510 break; 2510 break;
2511 } 2511 }
2512 } 2512 }
2513 } 2513 }
2514 EXPECT_TRUE(found_delete); 2514 EXPECT_TRUE(found_delete);
2515 2515
2516 // Make sure there is one extension, and there are no more apps. 2516 // Make sure there is one extension, and there are no more apps.
2517 EXPECT_EQ(1u, extensions_processor.data().size()); 2517 EXPECT_EQ(1u, extensions_processor.data().size());
2518 EXPECT_TRUE(apps_processor.data().empty()); 2518 EXPECT_TRUE(apps_processor.data().empty());
2519 } 2519 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698