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

Side by Side Diff: components/offline_pages/core/downloads/download_ui_adapter_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/offline_pages/core/downloads/download_ui_adapter.h" 5 #include "components/offline_pages/core/downloads/download_ui_adapter.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class DownloadUIAdapterDelegate : public DownloadUIAdapter::Delegate { 53 class DownloadUIAdapterDelegate : public DownloadUIAdapter::Delegate {
54 public: 54 public:
55 DownloadUIAdapterDelegate() {} 55 DownloadUIAdapterDelegate() {}
56 ~DownloadUIAdapterDelegate() override {} 56 ~DownloadUIAdapterDelegate() override {}
57 57
58 // DownloadUIAdapter::Delegate 58 // DownloadUIAdapter::Delegate
59 bool IsVisibleInUI(const ClientId& client_id) override { return is_visible; } 59 bool IsVisibleInUI(const ClientId& client_id) override { return is_visible; }
60 bool IsTemporarilyHiddenInUI(const ClientId& client_id) override { 60 bool IsTemporarilyHiddenInUI(const ClientId& client_id) override {
61 return is_temporarily_hidden; 61 return is_temporarily_hidden;
62 } 62 }
63 void SetUIAdapter(DownloadUIAdapter* ui_adapter) override{}; 63 void SetUIAdapter(DownloadUIAdapter* ui_adapter) override {}
64 64
65 bool is_visible = true; 65 bool is_visible = true;
66 bool is_temporarily_hidden = false; 66 bool is_temporarily_hidden = false;
67 }; 67 };
68 68
69 // Mock OfflinePageModel for testing the SavePage calls. 69 // Mock OfflinePageModel for testing the SavePage calls.
70 class MockOfflinePageModel : public StubOfflinePageModel { 70 class MockOfflinePageModel : public StubOfflinePageModel {
71 public: 71 public:
72 MockOfflinePageModel(base::TestMockTimeTaskRunner* task_runner) 72 MockOfflinePageModel(base::TestMockTimeTaskRunner* task_runner)
73 : observer_(nullptr), 73 : observer_(nullptr),
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 ASSERT_NE(nullptr, item); 469 ASSERT_NE(nullptr, item);
470 EXPECT_GT(item->download_progress_bytes, 0LL); 470 EXPECT_GT(item->download_progress_bytes, 0LL);
471 // Updated 2 times - with progress and to 'completed'. 471 // Updated 2 times - with progress and to 'completed'.
472 EXPECT_EQ(2UL, updated_guids.size()); 472 EXPECT_EQ(2UL, updated_guids.size());
473 EXPECT_EQ(kTestGuid1, updated_guids[0]); 473 EXPECT_EQ(kTestGuid1, updated_guids[0]);
474 EXPECT_EQ(kTestGuid1, updated_guids[1]); 474 EXPECT_EQ(kTestGuid1, updated_guids[1]);
475 } 475 }
476 476
477 } // namespace offline_pages 477 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698