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

Side by Side Diff: chrome/browser/nacl_host/pnacl_host_unittest.cc

Issue 61763026: Move chrome/browser/nacl_host/pnacl_translation_cache.* to components/nacl/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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_host.h" 5 #include "chrome/browser/nacl_host/pnacl_host.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/threading/sequenced_worker_pool.h" 11 #include "base/threading/sequenced_worker_pool.h"
12 #include "chrome/browser/nacl_host/pnacl_translation_cache.h" 12 #include "components/nacl/browser/pnacl_translation_cache.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "content/public/test/test_browser_thread_bundle.h" 14 #include "content/public/test/test_browser_thread_bundle.h"
15 #include "net/base/test_completion_callback.h" 15 #include "net/base/test_completion_callback.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 #if defined(OS_WIN) 18 #if defined(OS_WIN)
19 #define snprintf _snprintf 19 #define snprintf _snprintf
20 #endif 20 #endif
21 21
22 namespace pnacl { 22 namespace pnacl {
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 base::Time(), base::Time(), base::Bind(cb.callback(), 0)); 423 base::Time(), base::Time(), base::Bind(cb.callback(), 0));
424 // Check that the translation cache has been cleared before flushing the 424 // Check that the translation cache has been cleared before flushing the
425 // queues, because the backend will be freed once it is. 425 // queues, because the backend will be freed once it is.
426 EXPECT_EQ(0, GetCacheSize()); 426 EXPECT_EQ(0, GetCacheSize());
427 EXPECT_EQ(0, cb.GetResult(net::ERR_IO_PENDING)); 427 EXPECT_EQ(0, cb.GetResult(net::ERR_IO_PENDING));
428 // Now check that the backend has been freed. 428 // Now check that the backend has been freed.
429 EXPECT_FALSE(CacheIsInitialized()); 429 EXPECT_FALSE(CacheIsInitialized());
430 } 430 }
431 431
432 } // namespace pnacl 432 } // namespace pnacl
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/pnacl_host.cc ('k') | chrome/browser/nacl_host/pnacl_translation_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698