diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-03 16:30:36 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-03 16:30:36 +0000 |
commit | 951d5d54dca8a8f1720203e13ebbcb17cae0ab3c (patch) | |
tree | 80808593fab77dab12e376d95a4f9a282272bb42 /ppapi/cpp/extensions | |
parent | c559db20c909bae7749e98e14e4154f7f8e31638 (diff) | |
download | chromium_src-951d5d54dca8a8f1720203e13ebbcb17cae0ab3c.zip chromium_src-951d5d54dca8a8f1720203e13ebbcb17cae0ab3c.tar.gz chromium_src-951d5d54dca8a8f1720203e13ebbcb17cae0ab3c.tar.bz2 |
Reland: Add Pepper API tests for chrome.socket.
This CL also refactors the gyp definitions for building NaCl testing modules.
The original CL is https://codereview.chromium.org/13811036/
(The four reviewers on the TBR line have LG-ed it.)
BUG=226303
TEST=None
TBR=bradnelson@google.com
Review URL: https://codereview.chromium.org/14236010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/extensions')
-rw-r--r-- | ppapi/cpp/extensions/dict_field.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ppapi/cpp/extensions/dict_field.h b/ppapi/cpp/extensions/dict_field.h index 1a01e44..5a085c3a 100644 --- a/ppapi/cpp/extensions/dict_field.h +++ b/ppapi/cpp/extensions/dict_field.h @@ -28,8 +28,9 @@ class DictField { const std::string& key() const { return key_; } - T& value() { return value_; } - const T& value() const { return value_; } + // Returns the value. + T& operator()() { return value_; } + const T& operator()() const { return value_; } // Adds this field to the dictionary var. bool AddTo(VarDictionary_Dev* dict) const { @@ -66,8 +67,9 @@ class OptionalDictField { const std::string& key() const { return key_; } - Optional<T>& value() { return value_; } - const Optional<T>& value() const { return value_; } + // Returns the value. + Optional<T>& operator()() { return value_; } + const Optional<T>& operator()() const { return value_; } // Adds this field to the dictionary var, if |value| has been set. bool MayAddTo(VarDictionary_Dev* dict) const { |