OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser/renderer_host/resource_dispatcher_host.h" | 7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
8 #include "chrome/browser/ui/browser.h" | |
9 #include "chrome/browser/utility_process_host.h" | 8 #include "chrome/browser/utility_process_host.h" |
10 #include "chrome/common/indexed_db_key.h" | 9 #include "chrome/common/indexed_db_key.h" |
11 #include "chrome/common/serialized_script_value.h" | 10 #include "chrome/common/serialized_script_value.h" |
12 #include "chrome/test/in_process_browser_test.h" | 11 #include "chrome/test/in_process_browser_test.h" |
13 #include "chrome/test/ui_test_utils.h" | 12 #include "chrome/test/ui_test_utils.h" |
14 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h" |
17 #include "webkit/glue/idb_bindings.h" | 16 #include "webkit/glue/idb_bindings.h" |
18 #include "webkit/glue/web_io_operators.h" | 17 #include "webkit/glue/web_io_operators.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // Call again with the Utility process in batch mode and with valid keys. | 261 // Call again with the Utility process in batch mode and with valid keys. |
263 expected_values.clear(); | 262 expected_values.clear(); |
264 IndexedDBKey value; | 263 IndexedDBKey value; |
265 value.SetString(UTF8ToUTF16("zoo")); | 264 value.SetString(UTF8ToUTF16("zoo")); |
266 expected_values.push_back(value); | 265 expected_values.push_back(value); |
267 expected_values.push_back(invalid_value); | 266 expected_values.push_back(invalid_value); |
268 scoped_helper.SetExpected(kId + 1, expected_values, false); | 267 scoped_helper.SetExpected(kId + 1, expected_values, false); |
269 scoped_helper.CheckValuesForKeyPath(kId + 1, serialized_values, | 268 scoped_helper.CheckValuesForKeyPath(kId + 1, serialized_values, |
270 UTF8ToUTF16("foo")); | 269 UTF8ToUTF16("foo")); |
271 } | 270 } |
OLD | NEW |