Commit 5503269a authored by yamaguchi's avatar yamaguchi Committed by Commit bot

Fix compilation error by unused functions under ceratin build configuration.

Existing code will not build when building chromeos_unittests target following the simple chrome build instruction
http://www.chromium.org/chromium-os/how-tos-and-troubleshooting/building-chromium-browser
with BOARD=x86-generic, for example.

TEST=chromeos_unittest built successfully following the instruction above, and the test passed.

Review-Url: https://codereview.chromium.org/2344893002
Cr-Commit-Position: refs/heads/master@{#419128}
parent 913f8b74
...@@ -391,24 +391,11 @@ class MockDiskMountManagerObserver : public DiskMountManager::Observer { ...@@ -391,24 +391,11 @@ class MockDiskMountManagerObserver : public DiskMountManager::Observer {
// Shift operators of ostream. // Shift operators of ostream.
// Needed to print values in case of EXPECT_* failure in gtest. // Needed to print values in case of EXPECT_* failure in gtest.
std::ostream& operator<<(std::ostream& stream,
const DeviceEvent& device_event) {
return stream << device_event.DebugString();
}
std::ostream& operator<<(std::ostream& stream, const DiskEvent& disk_event) {
return stream << disk_event.DebugString();
}
std::ostream& operator<<(std::ostream& stream, std::ostream& operator<<(std::ostream& stream,
const FormatEvent& format_event) { const FormatEvent& format_event) {
return stream << format_event.DebugString(); return stream << format_event.DebugString();
} }
std::ostream& operator<<(std::ostream& stream, const MountEvent& mount_event) {
return stream << mount_event.DebugString();
}
class DiskMountManagerTest : public testing::Test { class DiskMountManagerTest : public testing::Test {
public: public:
DiskMountManagerTest() {} DiskMountManagerTest() {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment