Commit 6a162e1c authored by Anand K. Mistry's avatar Anand K. Mistry Committed by Commit Bot

Fix typos.

BUG=None

Change-Id: I897361040b6af091de7f3f8a5b790e08f81d65bd
Reviewed-on: https://chromium-review.googlesource.com/1182719
Commit-Queue: Anand Mistry <amistry@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584671}
parent 94bde922
...@@ -334,7 +334,7 @@ class DiskMountManagerImpl : public DiskMountManager, ...@@ -334,7 +334,7 @@ class DiskMountManagerImpl : public DiskMountManager,
const std::string& mount_path = disk.mount_path(); const std::string& mount_path = disk.mount_path();
MountPointMap::const_iterator mount_point = mount_points_.find(mount_path); MountPointMap::const_iterator mount_point = mount_points_.find(mount_path);
if (mount_point == mount_points_.end()) { if (mount_point == mount_points_.end()) {
// Not in mount_points_. This happens when the mount_points ans disks_ are // Not in mount_points_. This happens when the mount_points and disks_ are
// inconsistent. // inconsistent.
LOG(ERROR) << "Mount point with path \"" << mount_path << "\" not found."; LOG(ERROR) << "Mount point with path \"" << mount_path << "\" not found.";
OnMountCompleted( OnMountCompleted(
......
...@@ -68,7 +68,7 @@ struct TestMountPointInfo { ...@@ -68,7 +68,7 @@ struct TestMountPointInfo {
chromeos::disks::MountCondition mount_condition; chromeos::disks::MountCondition mount_condition;
}; };
// List of disks held in DiskMountManager at the begining of the test. // List of disks held in DiskMountManager at the beginning of the test.
const TestDiskInfo kTestDisks[] = { const TestDiskInfo kTestDisks[] = {
{ {
kDevice1SourcePath, kDevice1SourcePath,
...@@ -126,7 +126,7 @@ const TestDiskInfo kTestDisks[] = { ...@@ -126,7 +126,7 @@ const TestDiskInfo kTestDisks[] = {
}, },
}; };
// List of mount points held in DiskMountManager at the begining of the test. // List of mount points held in DiskMountManager at the beginning of the test.
const TestMountPointInfo kTestMountPoints[] = { const TestMountPointInfo kTestMountPoints[] = {
{ {
"/archive/source_path", "/archive/source_path",
...@@ -493,7 +493,7 @@ class DiskMountManagerTest : public testing::Test { ...@@ -493,7 +493,7 @@ class DiskMountManagerTest : public testing::Test {
base::test::ScopedTaskEnvironment::MainThreadType::UI) {} base::test::ScopedTaskEnvironment::MainThreadType::UI) {}
~DiskMountManagerTest() override = default; ~DiskMountManagerTest() override = default;
// Sets up test dbus tread manager and disks mount manager. // Sets up test dbus thread manager and disks mount manager.
// Initializes disk mount manager disks and mount points. // Initializes disk mount manager disks and mount points.
// Adds a test observer to the disk mount manager. // Adds a test observer to the disk mount manager.
void SetUp() override { void SetUp() override {
...@@ -510,7 +510,7 @@ class DiskMountManagerTest : public testing::Test { ...@@ -510,7 +510,7 @@ class DiskMountManagerTest : public testing::Test {
DiskMountManager::GetInstance()->AddObserver(observer_.get()); DiskMountManager::GetInstance()->AddObserver(observer_.get());
} }
// Shuts down dbus thread manager and disk moutn manager used in the test. // Shuts down dbus thread manager and disk mount manager used in the test.
void TearDown() override { void TearDown() override {
DiskMountManager::GetInstance()->RemoveObserver(observer_.get()); DiskMountManager::GetInstance()->RemoveObserver(observer_.get());
DiskMountManager::Shutdown(); DiskMountManager::Shutdown();
...@@ -518,7 +518,7 @@ class DiskMountManagerTest : public testing::Test { ...@@ -518,7 +518,7 @@ class DiskMountManagerTest : public testing::Test {
} }
protected: protected:
// Checks if disk mount manager contains a mount point with specified moutn // Checks if disk mount manager contains a mount point with specified mount
// path. // path.
bool HasMountPoint(const std::string& mount_path) { bool HasMountPoint(const std::string& mount_path) {
const DiskMountManager::MountPointMap& mount_points = const DiskMountManager::MountPointMap& mount_points =
......
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