diff options
author | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-15 08:05:53 +0000 |
---|---|---|
committer | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-15 08:05:53 +0000 |
commit | 13c70b80c24bea374bd921d2b3c885d32026c985 (patch) | |
tree | 6695b3b29195c6916ce1f576b5fb4ea687332e3d /chrome/renderer/media | |
parent | ebeefff3de6b22ea1447f768399f5fba14820ca8 (diff) | |
download | chromium_src-13c70b80c24bea374bd921d2b3c885d32026c985.zip chromium_src-13c70b80c24bea374bd921d2b3c885d32026c985.tar.gz chromium_src-13c70b80c24bea374bd921d2b3c885d32026c985.tar.bz2 |
Adds default constructors and destructors to ViewHostMsgs.
This change adds default constructors to ViewHostMsgs defined in 'chrome/common/render_messages_params.h' to prevent its variables from being used uninitialized, and adds destructors to prevent compilers from synthesizing them when including the header file. This change also removes code that inserts constants to the structs because we do not need it any more.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3252001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/media')
-rw-r--r-- | chrome/renderer/media/audio_renderer_impl_unittest.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/renderer/media/audio_renderer_impl_unittest.cc b/chrome/renderer/media/audio_renderer_impl_unittest.cc index d5785ea..b6c3593 100644 --- a/chrome/renderer/media/audio_renderer_impl_unittest.cc +++ b/chrome/renderer/media/audio_renderer_impl_unittest.cc @@ -105,12 +105,12 @@ TEST_F(AudioRendererImplTest, SetVolume) { TEST_F(AudioRendererImplTest, Stop) { // Declare some state messages. - const ViewMsg_AudioStreamState_Params kError = - { ViewMsg_AudioStreamState_Params::kError }; - const ViewMsg_AudioStreamState_Params kPlaying = - { ViewMsg_AudioStreamState_Params::kPlaying }; - const ViewMsg_AudioStreamState_Params kPaused = - { ViewMsg_AudioStreamState_Params::kPaused }; + const ViewMsg_AudioStreamState_Params kError( + ViewMsg_AudioStreamState_Params::kError); + const ViewMsg_AudioStreamState_Params kPlaying( + ViewMsg_AudioStreamState_Params::kPlaying); + const ViewMsg_AudioStreamState_Params kPaused( + ViewMsg_AudioStreamState_Params::kPaused); // Execute Stop() codepath to create an IPC message. EXPECT_CALL(stop_callback_, OnFilterCallback()); |