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

Side by Side Diff: components/ntp_snippets/ntp_snippets_service_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/macros.h"
5 #include "base/time/time.h" 6 #include "base/time/time.h"
6 #include "components/ntp_snippets/ntp_snippet.h" 7 #include "components/ntp_snippets/ntp_snippet.h"
7 #include "components/ntp_snippets/ntp_snippets_service.h" 8 #include "components/ntp_snippets/ntp_snippets_service.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace { 11 namespace {
11 12
12 class SnippetObserver : public ntp_snippets::NTPSnippetsServiceObserver { 13 class SnippetObserver : public ntp_snippets::NTPSnippetsServiceObserver {
13 public: 14 public:
14 SnippetObserver() : loaded_(false), shutdown_(false) {} 15 SnippetObserver() : loaded_(false), shutdown_(false) {}
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 EXPECT_TRUE(service->LoadFromJSONString(json_str)); 142 EXPECT_TRUE(service->LoadFromJSONString(json_str));
142 143
143 SnippetObserver observer; 144 SnippetObserver observer;
144 service->AddObserver(&observer); 145 service->AddObserver(&observer);
145 146
146 EXPECT_TRUE(observer.loaded_); 147 EXPECT_TRUE(observer.loaded_);
147 148
148 service->RemoveObserver(&observer); 149 service->RemoveObserver(&observer);
149 } 150 }
150 } // namespace 151 } // namespace
OLDNEW
« no previous file with comments | « components/ntp_snippets/ntp_snippets_service.h ('k') | components/offline_pages/offline_page_archiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698