Skip to content

Commit

Permalink
Fix compilation error by unused functions under ceratin build configu…
Browse files Browse the repository at this point in the history
…ration.

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}
  • Loading branch information
yamaguchi authored and Commit bot committed Sep 16, 2016
1 parent 913f8b7 commit 5503269
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions chromeos/disks/disk_mount_manager_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -391,24 +391,11 @@ class MockDiskMountManagerObserver : public DiskMountManager::Observer {

// Shift operators of ostream.
// 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,
const FormatEvent& format_event) {
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 {
public:
DiskMountManagerTest() {}
Expand Down

0 comments on commit 5503269

Please sign in to comment.