OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/nacl_host/pnacl_translation_cache.h" | 5 #include "components/nacl/browser/pnacl_translation_cache.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "components/nacl/common/pnacl_types.h" | 11 #include "components/nacl/common/pnacl_types.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.h" |
14 #include "net/base/io_buffer.h" | 14 #include "net/base/io_buffer.h" |
15 #include "net/base/test_completion_callback.h" | 15 #include "net/base/test_completion_callback.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 StoreNexe(test_key, test_store_val); | 260 StoreNexe(test_key, test_store_val); |
261 TestNexeCallback load_cb; | 261 TestNexeCallback load_cb; |
262 std::string nexe; | 262 std::string nexe; |
263 cache_->GetNexe(test_key + "a", load_cb.callback()); | 263 cache_->GetNexe(test_key + "a", load_cb.callback()); |
264 int rv; | 264 int rv; |
265 scoped_refptr<net::DrainableIOBuffer> buf(load_cb.GetResult(&rv)); | 265 scoped_refptr<net::DrainableIOBuffer> buf(load_cb.GetResult(&rv)); |
266 EXPECT_EQ(net::ERR_FAILED, rv); | 266 EXPECT_EQ(net::ERR_FAILED, rv); |
267 } | 267 } |
268 | 268 |
269 } // namespace pnacl | 269 } // namespace pnacl |
OLD | NEW |