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

Side by Side Diff: chrome/browser/sync/test/integration/sync_extension_helper.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 (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/test/integration/sync_extension_helper.h" 5 #include "chrome/browser/sync/test/integration/sync_extension_helper.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/guid.h" 9 #include "base/guid.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/extension_util.h" 15 #include "chrome/browser/extensions/extension_util.h"
16 #include "chrome/browser/extensions/pending_extension_info.h" 16 #include "chrome/browser/extensions/pending_extension_info.h"
17 #include "chrome/browser/extensions/pending_extension_manager.h" 17 #include "chrome/browser/extensions/pending_extension_manager.h"
18 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" 18 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" 20 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
21 #include "chrome/browser/sync/test/integration/sync_test.h" 21 #include "chrome/browser/sync/test/integration/sync_test.h"
22 #include "components/crx_file/id_util.h" 22 #include "components/crx_file/id_util.h"
23 #include "components/sync/api/string_ordinal.h"
23 #include "extensions/browser/extension_prefs.h" 24 #include "extensions/browser/extension_prefs.h"
24 #include "extensions/browser/extension_registry.h" 25 #include "extensions/browser/extension_registry.h"
25 #include "extensions/browser/extension_system.h" 26 #include "extensions/browser/extension_system.h"
26 #include "extensions/browser/install_flag.h" 27 #include "extensions/browser/install_flag.h"
27 #include "extensions/browser/uninstall_reason.h" 28 #include "extensions/browser/uninstall_reason.h"
28 #include "extensions/common/extension.h" 29 #include "extensions/common/extension.h"
29 #include "extensions/common/extension_set.h" 30 #include "extensions/common/extension_set.h"
30 #include "extensions/common/manifest_constants.h" 31 #include "extensions/common/manifest_constants.h"
31 #include "sync/api/string_ordinal.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 33
34 using extensions::Extension; 34 using extensions::Extension;
35 using extensions::ExtensionPrefs; 35 using extensions::ExtensionPrefs;
36 using extensions::ExtensionRegistry; 36 using extensions::ExtensionRegistry;
37 using extensions::Manifest; 37 using extensions::Manifest;
38 38
39 const char kFakeExtensionPrefix[] = "fakeextension"; 39 const char kFakeExtensionPrefix[] = "fakeextension";
40 40
41 SyncExtensionHelper::ExtensionState::ExtensionState() 41 SyncExtensionHelper::ExtensionState::ExtensionState()
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 EXPECT_EQ(expected_id, extension->id()); 425 EXPECT_EQ(expected_id, extension->id());
426 return NULL; 426 return NULL;
427 } 427 }
428 DVLOG(2) << "created extension with name = " 428 DVLOG(2) << "created extension with name = "
429 << name << ", id = " << expected_id; 429 << name << ", id = " << expected_id;
430 (it->second)[name] = extension; 430 (it->second)[name] = extension;
431 id_to_name_[expected_id] = name; 431 id_to_name_[expected_id] = name;
432 id_to_type_[expected_id] = type; 432 id_to_type_[expected_id] = type;
433 return extension; 433 return extension;
434 } 434 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698