diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 20:12:37 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 20:12:37 +0000 |
commit | 2059f3d1c2e72d67797567c733dd6377ad5aceff (patch) | |
tree | 12df83060885af18ea09879aa85cff3f3b04979f /ppapi/tests/test_var.cc | |
parent | 0090bc2f8f7077df2721c457f620890e627c204a (diff) | |
download | chromium_src-2059f3d1c2e72d67797567c733dd6377ad5aceff.zip chromium_src-2059f3d1c2e72d67797567c733dd6377ad5aceff.tar.gz chromium_src-2059f3d1c2e72d67797567c733dd6377ad5aceff.tar.bz2 |
Add DEPS include rules so we don't accidentally use chromium stuff.
I basically turned off everything that is turned on in the root DEPS file, and then selectively turned stuff on. I had to provide some macros to replace the use of base/compilerspecific.h and build/buildconfig.h.
I'm not sure if we have a coherent understanding of private vs trusted yet, but my thinking is that trusted can do anything, but private can't use trusted (it sounds like we may start selectively exposing some private interfaces to installed apps).
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8764004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112512 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_var.cc')
-rw-r--r-- | ppapi/tests/test_var.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ppapi/tests/test_var.cc b/ppapi/tests/test_var.cc index 6357737..ff899a0 100644 --- a/ppapi/tests/test_var.cc +++ b/ppapi/tests/test_var.cc @@ -8,7 +8,6 @@ #include <limits> -#include "base/basictypes.h" #include "ppapi/c/dev/ppb_testing_dev.h" #include "ppapi/c/pp_var.h" #include "ppapi/c/ppb_var.h" @@ -46,7 +45,7 @@ std::string TestVar::TestBasicString() { instance_->pp_instance()); { const char kStr[] = "Hello"; - const uint32_t kStrLen(arraysize(kStr) - 1); + const uint32_t kStrLen(sizeof(kStr) - 1); PP_Var str = var_interface_->VarFromUtf8(pp::Module::Get()->pp_module(), kStr, kStrLen); ASSERT_EQ(PP_VARTYPE_STRING, str.type); |