OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/live_sync/extensions_helper.h" | 5 #include "chrome/browser/sync/test/integration/extensions_helper.h" |
6 | 6 |
7 #include <cstring> | 7 #include <cstring> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/sync/test/live_sync/sync_datatype_helper.h" | 13 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
14 #include "chrome/browser/sync/test/live_sync/sync_extension_helper.h" | 14 #include "chrome/browser/sync/test/integration/sync_extension_helper.h" |
15 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
16 | 16 |
17 using sync_datatype_helper::test; | 17 using sync_datatype_helper::test; |
18 | 18 |
19 namespace extensions_helper { | 19 namespace extensions_helper { |
20 | 20 |
21 const char extension_name_prefix[] = "fakeextension"; | 21 const char extension_name_prefix[] = "fakeextension"; |
22 | 22 |
23 bool HasSameExtensionsAsVerifier(int index) { | 23 bool HasSameExtensionsAsVerifier(int index) { |
24 return SyncExtensionHelper::GetInstance()->ExtensionStatesMatch( | 24 return SyncExtensionHelper::GetInstance()->ExtensionStatesMatch( |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 if (!StartsWithASCII(name, extension_name_prefix, true) || | 116 if (!StartsWithASCII(name, extension_name_prefix, true) || |
117 !base::StringToInt(name.substr(strlen(extension_name_prefix)), index)) { | 117 !base::StringToInt(name.substr(strlen(extension_name_prefix)), index)) { |
118 LOG(WARNING) << "Unable to convert extension name \"" << name | 118 LOG(WARNING) << "Unable to convert extension name \"" << name |
119 << "\" to index"; | 119 << "\" to index"; |
120 return false; | 120 return false; |
121 } | 121 } |
122 return true; | 122 return true; |
123 } | 123 } |
124 | 124 |
125 } // namespace extensions_helper | 125 } // namespace extensions_helper |
OLD | NEW |