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 "base/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "chrome/browser/browser_process.h" | 6 #include "chrome/browser/browser_process.h" |
7 #include "chrome/test/in_process_browser_test.h" | 7 #include "chrome/test/in_process_browser_test.h" |
8 #include "chrome/test/ui_test_utils.h" | 8 #include "chrome/test/ui_test_utils.h" |
9 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 9 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
10 #include "content/browser/utility_process_host.h" | 10 #include "content/browser/utility_process_host.h" |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // {foo: 'zoo', bar: 'myNewKey'} | 331 // {foo: 'zoo', bar: 'myNewKey'} |
332 const char16 expected_data[] = {0x353, 0x6f66, 0x536f, 0x7a03, 0x6f6f, 0x353, | 332 const char16 expected_data[] = {0x353, 0x6f66, 0x536f, 0x7a03, 0x6f6f, 0x353, |
333 0x6162, 0x5372, 0x6d08, 0x4e79, 0x7765, | 333 0x6162, 0x5372, 0x6d08, 0x4e79, 0x7765, |
334 0x654b, 0x7b79, 0x2}; | 334 0x654b, 0x7b79, 0x2}; |
335 SerializedScriptValue expected_value(false, false, | 335 SerializedScriptValue expected_value(false, false, |
336 string16(expected_data, | 336 string16(expected_data, |
337 arraysize(expected_data))); | 337 arraysize(expected_data))); |
338 | 338 |
339 ScopedIDBKeyPathHelper scoped_helper; | 339 ScopedIDBKeyPathHelper scoped_helper; |
340 scoped_helper.SetExpectedValue(expected_value); | 340 scoped_helper.SetExpectedValue(expected_value); |
341 scoped_helper.CheckInjectValue(key, value, UTF8ToUTF16("bar")); | 341 // TODO(lukezarko@gmail.com): re-enable this after the changes described at |
| 342 // https://bugs.webkit.org/show_bug.cgi?id=63481 land. |
| 343 // scoped_helper.CheckInjectValue(key, value, UTF8ToUTF16("bar")); |
342 | 344 |
343 scoped_helper.SetExpectedValue(SerializedScriptValue()); // Expect null. | 345 scoped_helper.SetExpectedValue(SerializedScriptValue()); // Expect null. |
344 scoped_helper.CheckInjectValue(key, value, UTF8ToUTF16("bad.key.path")); | 346 scoped_helper.CheckInjectValue(key, value, UTF8ToUTF16("bad.key.path")); |
345 } | 347 } |
OLD | NEW |