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

Side by Side Diff: content/renderer/pepper/v8_var_converter_unittest.cc

Issue 1140953003: PPAPI Testing: Clean up location of ppapi::StripTestPrefixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to shared_impl Created 5 years, 7 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/pepper/v8_var_converter.h" 5 #include "content/renderer/pepper/v8_var_converter.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "content/renderer/pepper/resource_converter.h" 16 #include "content/renderer/pepper/resource_converter.h"
17 #include "ppapi/c/pp_bool.h" 17 #include "ppapi/c/pp_bool.h"
18 #include "ppapi/c/pp_var.h" 18 #include "ppapi/c/pp_var.h"
19 #include "ppapi/shared_impl/array_var.h" 19 #include "ppapi/shared_impl/array_var.h"
20 #include "ppapi/shared_impl/dictionary_var.h" 20 #include "ppapi/shared_impl/dictionary_var.h"
21 #include "ppapi/shared_impl/ppapi_globals.h" 21 #include "ppapi/shared_impl/ppapi_globals.h"
22 #include "ppapi/shared_impl/proxy_lock.h" 22 #include "ppapi/shared_impl/proxy_lock.h"
23 #include "ppapi/shared_impl/scoped_pp_var.h" 23 #include "ppapi/shared_impl/scoped_pp_var.h"
24 #include "ppapi/shared_impl/test_globals.h" 24 #include "ppapi/shared_impl/test_globals.h"
25 #include "ppapi/shared_impl/unittest_utils.h" 25 #include "ppapi/shared_impl/test_utils.h"
26 #include "ppapi/shared_impl/var.h" 26 #include "ppapi/shared_impl/var.h"
27 #include "ppapi/shared_impl/var_tracker.h" 27 #include "ppapi/shared_impl/var_tracker.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "v8/include/v8.h" 29 #include "v8/include/v8.h"
30 30
31 using ppapi::ArrayBufferVar; 31 using ppapi::ArrayBufferVar;
32 using ppapi::ArrayVar; 32 using ppapi::ArrayVar;
33 using ppapi::DictionaryVar; 33 using ppapi::DictionaryVar;
34 using ppapi::PpapiGlobals; 34 using ppapi::PpapiGlobals;
35 using ppapi::ProxyLock; 35 using ppapi::ProxyLock;
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 expected->SetWithStringKey("null", quux.get()); 437 expected->SetWithStringKey("null", quux.get());
438 ScopedPPVar oops(ScopedPPVar::PassRef(), StringVar::StringToPPVar("oops")); 438 ScopedPPVar oops(ScopedPPVar::PassRef(), StringVar::StringToPPVar("oops"));
439 expected->SetWithStringKey("undefined", oops.get()); 439 expected->SetWithStringKey("undefined", oops.get());
440 ScopedPPVar release_expected(ScopedPPVar::PassRef(), expected->GetPPVar()); 440 ScopedPPVar release_expected(ScopedPPVar::PassRef(), expected->GetPPVar());
441 441
442 ASSERT_TRUE(TestEqual(release_expected.get(), release_actual.get(), true)); 442 ASSERT_TRUE(TestEqual(release_expected.get(), release_actual.get(), true));
443 } 443 }
444 } 444 }
445 445
446 } // namespace content 446 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698