diff options
author | garianov@google.com <garianov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 20:59:23 +0000 |
---|---|---|
committer | garianov@google.com <garianov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 20:59:23 +0000 |
commit | 52d2c8e0d85be3f3f6eca7b54e15b6e9d43a0182 (patch) | |
tree | 19097d31f50a93724cdbc93c29af94a044b900cd /ppapi/cpp | |
parent | 6497b9d91e37f3635c7ea51cd63494bead7d5911 (diff) | |
download | chromium_src-52d2c8e0d85be3f3f6eca7b54e15b6e9d43a0182.zip chromium_src-52d2c8e0d85be3f3f6eca7b54e15b6e9d43a0182.tar.gz chromium_src-52d2c8e0d85be3f3f6eca7b54e15b6e9d43a0182.tar.bz2 |
Run Pepper unit tests in Native Client
copy of http://codereview.chromium.org/4991006/
had to do it again in 'commitable' version of chrome tree
Review URL: http://codereview.chromium.org/4979006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp')
-rw-r--r-- | ppapi/cpp/var.cc | 6 | ||||
-rw-r--r-- | ppapi/cpp/var.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/cpp/var.cc b/ppapi/cpp/var.cc index 5ade9b0..a6f30ca 100644 --- a/ppapi/cpp/var.cc +++ b/ppapi/cpp/var.cc @@ -61,6 +61,12 @@ Var::Var(int32_t i) { needs_release_ = false; } +Var::Var(long i) { + var_.type = PP_VARTYPE_INT32; + var_.value.as_int = i; + needs_release_ = false; +} + Var::Var(double d) { var_.type = PP_VARTYPE_DOUBLE; var_.value.as_double = d; diff --git a/ppapi/cpp/var.h b/ppapi/cpp/var.h index 9109fef..d67eb24 100644 --- a/ppapi/cpp/var.h +++ b/ppapi/cpp/var.h @@ -24,6 +24,7 @@ class Var { Var(Null); // PP_Var of type Null. Var(bool b); Var(int32_t i); + Var(long i); Var(double d); Var(const char* utf8_str); // Must be encoded in UTF-8. Var(const std::string& utf8_str); // Must be encoded in UTF-8. |