Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(969)

Side by Side Diff: chrome/browser/extensions/api/image_writer_private/operation_unittest.cc

Issue 2926553004: Remove trailing semicolon at the end of a method definition (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/files/file_util.h" 5 #include "base/files/file_util.h"
6 #include "base/files/scoped_temp_dir.h" 6 #include "base/files/scoped_temp_dir.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" 10 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 // Helpers to set-up state for intermediate stages. 57 // Helpers to set-up state for intermediate stages.
58 void SetImagePath(const base::FilePath image_path) { 58 void SetImagePath(const base::FilePath image_path) {
59 image_path_ = image_path; 59 image_path_ = image_path;
60 } 60 }
61 61
62 base::FilePath GetImagePath() { return image_path_; } 62 base::FilePath GetImagePath() { return image_path_; }
63 63
64 private: 64 private:
65 ~OperationForTest() override{}; 65 ~OperationForTest() override {}
66 }; 66 };
67 67
68 class ImageWriterOperationTest : public ImageWriterUnitTestBase { 68 class ImageWriterOperationTest : public ImageWriterUnitTestBase {
69 protected: 69 protected:
70 ImageWriterOperationTest() 70 ImageWriterOperationTest()
71 : profile_(new TestingProfile), manager_(profile_.get()) {} 71 : profile_(new TestingProfile), manager_(profile_.get()) {}
72 void SetUp() override { 72 void SetUp() override {
73 ImageWriterUnitTestBase::SetUp(); 73 ImageWriterUnitTestBase::SetUp();
74 74
75 // Create the zip file. 75 // Create the zip file.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 #endif 258 #endif
259 259
260 // Tests that on creation the operation_ has the expected state. 260 // Tests that on creation the operation_ has the expected state.
261 TEST_F(ImageWriterOperationTest, Creation) { 261 TEST_F(ImageWriterOperationTest, Creation) {
262 EXPECT_EQ(0, operation_->GetProgress()); 262 EXPECT_EQ(0, operation_->GetProgress());
263 EXPECT_EQ(image_writer_api::STAGE_UNKNOWN, operation_->GetStage()); 263 EXPECT_EQ(image_writer_api::STAGE_UNKNOWN, operation_->GetStage());
264 } 264 }
265 265
266 } // namespace image_writer 266 } // namespace image_writer
267 } // namespace extensions 267 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698